suqunsq / ppu
1.0
2022-09-30 08:16 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
README
© KnowRoaming LTD 2017
此PHP包由Swagger Codegen项目自动生成
- API版本:v1.0.0
- 构建包:io.swagger.codegen.v3.generators.php.PhpClientCodegen
需求
PHP 5.5及以后版本
安装与使用
Composer
要使用Composer安装绑定,请将以下内容添加到composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门指南
请遵循安装程序,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new Swagger\Client\Api\AuthorizationApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $distributor_id = 56; // int | The ID of the Distributor to check the authorization $request_id = "request_id_example"; // string | It will be returned in the response header, the purpose of the RequestId to provide a reference ID to the client side developer if one is using a asynchronous system try { $result = $apiInstance->getDistributorAuthorization($distributor_id, $request_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuthorizationApi->getDistributorAuthorization: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\AuthorizationApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $group_id = 56; // int | The ID of the Group to check the authorization $request_id = "request_id_example"; // string | It will be returned in the response header, the purpose of the RequestId to provide a reference ID to the client side developer if one is using a asynchronous system try { $result = $apiInstance->getGroupAuthorization($group_id, $request_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuthorizationApi->getGroupAuthorization: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\AuthorizationApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $iccid = "iccid_example"; // string | The ID of the ICCID to check the authorization $request_id = "request_id_example"; // string | It will be returned in the response header, the purpose of the RequestId to provide a reference ID to the client side developer if one is using a asynchronous system try { $result = $apiInstance->getIccidAuthorization($iccid, $request_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuthorizationApi->getIccidAuthorization: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\AuthorizationApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $inventory_id = 56; // int | The ID of the Inventory to check the authorization $request_id = "request_id_example"; // string | It will be returned in the response header, the purpose of the RequestId to provide a reference ID to the client side developer if one is using a asynchronous system try { $result = $apiInstance->getInventoryAuthorization($inventory_id, $request_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuthorizationApi->getInventoryAuthorization: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\AuthorizationApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $package_id = "package_id_example"; // string | The ID of (UUID4) the Package to check the authorization $request_id = "request_id_example"; // string | It will be returned in the response header, the purpose of the RequestId to provide a reference ID to the client side developer if one is using a asynchronous system try { $result = $apiInstance->getPackageAuthorization($package_id, $request_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuthorizationApi->getPackageAuthorization: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\AuthorizationApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $package_template_id = 56; // int | The ID of the Package Template to check the authorization $request_id = "request_id_example"; // string | It will be returned in the response header, the purpose of the RequestId to provide a reference ID to the client side developer if one is using a asynchronous system try { $result = $apiInstance->getPackageTemplateAuthorization($package_template_id, $request_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuthorizationApi->getPackageTemplateAuthorization: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\AuthorizationApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $sponsored_imsi = 789; // int | The Sponsored IMSI to check the authorization $request_id = "request_id_example"; // string | It will be returned in the response header, the purpose of the RequestId to provide a reference ID to the client side developer if one is using a asynchronous system try { $result = $apiInstance->getSponsoredImsiAuthorization($sponsored_imsi, $request_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuthorizationApi->getSponsoredImsiAuthorization: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\AuthorizationApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $whitelist_id = 56; // int | The ID of the Whitelist to check the authorization $request_id = "request_id_example"; // string | It will be returned in the response header, the purpose of the RequestId to provide a reference ID to the client side developer if one is using a asynchronous system try { $result = $apiInstance->getWhitelistAuthorization($whitelist_id, $request_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuthorizationApi->getWhitelistAuthorization: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI相对于/ds/u/distributorPPUService/v1
模型文档
- ErrorMessage
- PagedResultResponsePackageAutomation
- PagedResultResponseSimNotification
- RequestALegDataEntry
- RequestALegSmsEntry
- RequestALegVoiceEntry
- RequestAdjustBalance
- RequestCreateDistributor
- RequestCreateImsiSlotProfile
- RequestCreateInventory
- RequestCreatePackage
- RequestCreatePackageType
- RequestCreatePayment
- RequestDuplicateWhitelist
- RequestGroupOverdraft
- RequestGroupParent
- RequestImsiSlotMapping
- RequestImsiWhitelist
- RequestInventoryGroup
- RequestInventorySim
- RequestInventorySimImsi
- RequestPackageAutomation
- RequestPackageStatus
- RequestProvisionInventorySim
- RequestRemoveInventorySim
- RequestSendSms
- RequestSendSmsBinary
- RequestSendSmsBinaryCustom
- RequestSetBalanceDrain
- RequestSimNotification
- RequestSimNotificationRecipient
- RequestSimOverdraft
- RequestSimParent
- RequestSimStatus
- RequestSimThrottle
- RequestSubgroup
- RequestSwitchProfileOTA
- RequestTimeAllowance
- RequestUpdateDistributorStatus
- RequestUpdateInventoryStatus
- RequestUpdateNetworkAccessEntries
- RequestUpdateNetworkAccessEntry
- RequestUpdatePackageTypeStatus
- RequestUpdateRouteConfiguration
- RequestUpdateWhitelistEntry
- RequestUpdateWhitelistImsis
- RequestUpdateWhitelistName
- RequestUpdateWhitelistSims
- RequestWhitelist
- RequestWhitelistEntry
- ResponseBalance
- ResponseBalanceDrain
- ResponseCountry
- ResponseDataCdr
- ResponseDataCdrCost
- ResponseDataSession
- ResponseDistributor
- ResponseDynamicPackageTimeAllowance
- ResponseGroup
- ResponseGroupDetails
- ResponseImsi
- ResponseImsiRecord
- ResponseImsiSlotMapping
- ResponseImsiSlotProfile
- ResponseInventory
- ResponseInventoryCurrency
- ResponseInventoryRateEntryALegData
- ResponseInventoryRateEntryALegSms
- ResponseInventoryRateEntryALegVoice
- ResponseInventoryStatus
- ResponseListResponseCountry
- ResponseListResponseDataCdr
- ResponseListResponseGroup
- ResponseListResponseGroupDetails
- ResponseListResponseImsiRecord
- ResponseListResponseInventory
- ResponseListResponseInventoryRateEntryALegData
- ResponseListResponseInventoryRateEntryALegSms
- ResponseListResponseInventoryRateEntryALegVoice
- ResponseListResponseLocationUpdate
- ResponseListResponseNetworkAccessEntry
- ResponseListResponsePackage
- ResponseListResponsePackageType
- ResponseListResponseRateEntryALegData
- ResponseListResponseRateEntryALegSms
- ResponseListResponseRateEntryALegVoice
- ResponseListResponseRateEntryBLegSms
- ResponseListResponseRateEntryBLegVoice
- ResponseListResponseSearchDistributor
- ResponseListResponseSearchImsiSlotProfiles
- ResponseListResponseSearchInventory
- ResponseListResponseSearchPackage
- ResponseListResponseSearchPackageType
- ResponseListResponseSearchSim
- ResponseListResponseSearchTrafficPolicy
- ResponseListResponseSearchWhitelist
- ResponseListResponseSim
- ResponseListResponseSimHistory
- ResponseListResponseSmsCdr
- 响应列表响应语音CDR
- 响应列表响应白名单条目
- 响应位置更新
- 响应MccMnc对
- 响应网络访问条目
- 响应透支
- 响应套餐
- 响应套餐自动化
- 响应套餐类型
- 响应支付
- 响应权限
- 响应分销商配置
- 响应费率条目ALeg数据
- 响应费率条目ALeg短信
- 响应费率条目ALeg语音
- 响应费率条目BLeg短信
- 响应费率条目BLeg语音
- 响应路由配置
- 响应搜索分销商
- 响应搜索IMSI槽位配置文件
- 响应搜索库存
- 响应搜索套餐
- 响应搜索套餐类型
- 响应搜索SIM卡
- 响应搜索流量策略
- 响应搜索白名单
- 响应SIM卡
- 响应SIM CLI
- 响应SIM DIDs
- 响应SIM历史记录
- 响应SIM通知
- 响应SIM路由配置
- 响应SIM状态
- 响应SIM节流
- 响应短信CDR
- 响应短信CDR成本
- 响应赞助IMSI
- 响应时间配额
- 响应流量策略
- 响应语音CDR
- 响应语音CDR成本
- 响应白名单
- 响应白名单条目
- 路由配置
授权文档
API密钥令牌
- 类型:API密钥
- API密钥参数名:ApiKey
- 位置:HTTP头
身份验证
- 类型:HTTP基本身份验证