本文整理汇总了PHP中HTTPClient::getServiceInformation方法的典型用法代码示例。如果您正苦于以下问题:PHP HTTPClient::getServiceInformation方法的具体用法?PHP HTTPClient::getServiceInformation怎么用?PHP HTTPClient::getServiceInformation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTTPClient
的用法示例。
在下文中一共展示了HTTPClient::getServiceInformation方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: HTTPClient
$_identityToken = '';
// Provided Token, The Identity Token should be stored in an encrypted format and read into the application.
// This can be stored either in a database or on the disk, but must always be protected and encrypted.
// If the IdentityToken is compromised you must notify us immmediately so we can issue a new IdentityToken
// This is main means of authentication to the platform, essentially this is your password.
require_once ABSPATH . '/ConfigFiles/ReadConfigValues.php';
/*
*
* Create new web service client class using provided token
* Profile ID and service ID are not required, but increase speed of script
* You may also pass the session token to increase speed again, but that token
* will need to be generated and saved elsewhere.
*
*/
$client = new HTTPClient($_identityToken, $_baseURL);
$_serviceInformation = $client->getServiceInformation();
if (count($_serviceInformation['BankcardServices'] == 1) && $_serviceInformation['BankcardServices']['BankcardService']) {
$_bankcardServices = $_serviceInformation['BankcardServices'];
include_once dirname(__FILE__) . '/TransactionProcessingScripts/BankcardTransactionProcessing.php';
}
//if (count($_serviceInformation['ElectronicCheckingServices'] == 1) && $_serviceInformation['ElectronicCheckingService']['ElectronicCheckingService'] )
// $_electronicCheckingServices = $_serviceInformation->ElectronicCheckingServices;
// include_once dirname(__FILE__).'../TransactionProcessingScripts/ElectronicCheckingTransactionProcessing.php';
//}
//if (count($_serviceInformation['StoredValueServices'] == 1) && $_serviceInformation['StoredValueServices']['StoredValueService'] ){
// $_storedvalueServices = $_serviceInformation['StoredValueServices'];
// include_once dirname(__FILE__).'../TransactionProcessingScripts/StoredValueTransactionProcessing.php';
//}
?>
示例2: HTTPClient
* Computer Software--Licensing clause at NASA FAR supplement
* 16-52.227-86; or their equivalent.
*
* Information in this software is subject to change without notice
* and does not represent a commitment on the part of IP Commerce.
*
* Sample Code is for reference Only and is intended to be used for educational purposes. It's the responsibility of
* the software company to properly integrate into their solution code that best meets their production needs.
*/
require_once ABSPATH . '/WebServiceProxies/HTTPClient.php';
$client = new HTTPClient($_identityToken, $_baseURL);
/*
* Retrieve Service Information
*/
if ($_serviceId == null) {
$response = $client->getServiceInformation();
$_serviceInformation = $response;
/*
* If multiple services exist print them all to the browser
*/
/*
* Note you may have multiple ServiceId's in your array of
* Get Service Information. Assign your Service Id appropriately
* Note: Store the Service Id after this step. This will remain
* static for your application unless you add additional services. This step
* only needs to occur during first time application setup an or if additional
* added at a later date.
*
*/
// Print Service Information
if (count($_serviceInformation['BankcardServices'] == 1) && $_serviceInformation['BankcardServices']['BankcardService']) {