jumper423/ voximplant-phpsdk
Voximplant HTTP API PHP SDK
1.0
2018-02-21 16:30 UTC
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-09-05 19:04:33 UTC
README
Voximplant HTTP API 描述
- API版本:1.0.0 更多信息请访问 http://voximplant.com
要求
PHP 5.4.0 及以上版本
安装与使用
Composer
要使用Composer安装绑定,请将以下内容添加到 composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/DmitryIvaneychik/phpsdk.git"
}
],
"require": {
"voximplant/phpsdk": "*@dev"
}
}
然后运行 composer install
手动安装
下载文件并包含 autoload.php
require_once( __DIR__ . '/vendor/autoload.php' );
入门指南
请按照安装流程进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key: api_key Voximplant\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY'); // Configure account name: account_name Voximplant\Configuration::getDefaultConfiguration()->setApiKey('account_name', 'YOUR_ACCOUNT_NAME'); $api_instance = new \Voximplant\Api\AccountsAuthenticationApi(); try { $result = $api_instance->logon(); print_r($result); } catch (Exception $e) { echo 'Exception when calling AccountsAuthenticationApi->logon: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI都是相对于 https://api.voximplant.com/platform_api/
模型文档
- ACDLock
- ACDLockedOperatorStateType
- ACDOperatorCall
- ACDQueueOperatorInfoType
- ACDQueueStateType
- ACDReadyOperatorStateType
- ACDServicingCallStateType
- ACDSessionEventInfoType
- ACDSessionInfoType
- ACDStateType
- ACDWaitingCallStateType
- APIError
- AccountCallback
- AccountCallbacks
- AccountDocumentVerifiedCallback
- AccountInfoType
- AccountIsFrozenCallback
- AccountVerificationDocument
- AccountVerificationType
- AccountVerifications
- ActivateSuccessfulCallback
- AdminRoleType
- AdminUserType
- ApplicationInfoType
- AttachedPhoneInfoType
- AuthorizedAccountIPType
- BankCardType
- CalculatedCallHistoryDataType
- CalculatedTransactionHistoryDataType
- CallHistoryReportCallback
- CallInfoType
- CallListDetailType
- CallListType
- CallSessionInfoType
- CallerIDInfoType
- CardExpiredCallback
- CardExpiresInMonthCallback
- CardPaymentCallback
- CardPaymentFailedCallback
- CertCredentialType
- ChargeAccountResult
- ChargedPhoneType
- ClonedACDQueueType
- ClonedACDSkillType
- ClonedAccountType
- ClonedAdminRoleType
- ClonedAdminUserType
- ClonedApplicationType
- ClonedRuleType
- ClonedScenarioType
- ClonedUserType
- ContractInfoType
- ContractorInfoType
- ContractorInvoiceServiceType
- ContractorInvoiceType
- ExchangeRates
- GetMoneyAmountToChargeResult
- HistoryReportType
- JSFailCallback
- MinBalanceCallback
- NewAttachedPhoneInfoType
- NewPhoneInfoType
- PhoneNumberCountryCategoryInfoType
- PhoneNumberCountryInfoType
- PhoneNumberCountryRegionInfoType
- PhoneNumberCountryStateInfoType
- PriceGroup
- PstnBlackListInfoType
- PushCredentialInfo
- QueueInfoType
- RecordType
- RegulationAddress
- RegulationAddressVerifiedCallback
- RegulationCountry
- RegulationRegionRecord
- RenewedSubscriptionsCallback
- RenewedSubscriptionsCallbackItem
- ResetAccountPasswordRequestCallback
- ResourceParams
- ResourcePrice
- ResourceUsageType
- RuleInfoType
- SIPRegistrationFailCallback
- SIPRegistrationType
- ScenarioInfoType
- ShortAccountInfoType
- SipWhiteListInfoType
- SkillInfoType
- StagnantAccountCallback
- SubscriptionIsDetachedCallback
- SubscriptionIsDetachedCallbackItem
- SubscriptionIsFrozenCallback
- SubscriptionIsFrozenCallbackItem
- SubscriptionTemplateType
- SubscriptionsToChargeType
- TransactionHistoryReportCallback
- TransactionInfoType
- UnchargedTariffCallback
- UnverifiedSubscriptionDetachedCallback
- UnverifiedSubscriptionDetachedCallbackItem
- UserInfoType
- ZipCode
授权文档
account_name
- 类型: 账户名称
- 账户名称参数名: account_name
- 位置: URL查询字符串
api_key
- 类型: API密钥
- API密钥参数名:api_key
- 位置: URL查询字符串
作者
Дмитрий Иванович ivaneychik@zingaya.com