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
This PHP package is automatically generated by the Swagger Codegen project:
- API version: v1.0.0
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen
Requirements
PHP 5.5 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?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; } ?>
Documentation for API Endpoints
All URIs are relative to /ds/u/distributorPPUService/v1
Documentation For Models
- 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
- ResponseListResponseVoiceCdr
- ResponseListResponseWhitelistEntry
- ResponseLocationUpdate
- ResponseMccMncPair
- ResponseNetworkAccessEntry
- ResponseOverdraft
- ResponsePackage
- ResponsePackageAutomation
- ResponsePackageType
- ResponsePayment
- ResponsePermission
- ResponseProvisionDistributor
- ResponseRateEntryALegData
- ResponseRateEntryALegSms
- ResponseRateEntryALegVoice
- ResponseRateEntryBLegSms
- ResponseRateEntryBLegVoice
- ResponseRouteConfig
- ResponseSearchDistributor
- ResponseSearchImsiSlotProfiles
- ResponseSearchInventory
- ResponseSearchPackage
- ResponseSearchPackageType
- ResponseSearchSim
- ResponseSearchTrafficPolicy
- ResponseSearchWhitelist
- ResponseSim
- ResponseSimCli
- ResponseSimDids
- ResponseSimHistory
- ResponseSimNotification
- ResponseSimRouteConfiguration
- ResponseSimStatus
- ResponseSimThrottle
- ResponseSmsCdr
- ResponseSmsCdrCost
- ResponseSponsorImsi
- ResponseTimeAllowance
- ResponseTrafficPolicy
- ResponseVoiceCdr
- ResponseVoiceCdrCost
- ResponseWhitelist
- ResponseWhitelistEntry
- RouteConfig
Documentation For Authorization
APIKeyToken
- Type: API key
- API key parameter name: ApiKey
- Location: HTTP header
authentication
- Type: HTTP basic authentication