kstmostofa / dingconnect-api-php
A PHP Client for the DingConnect Mobile Top-Up API.
v1.0.0
2023-10-03 18:39 UTC
Requires
- php: >=7.2
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: 3.34.0
- phpunit/phpunit: ^8.5.29
- squizlabs/php_codesniffer: 3.7.2
README
This PHP package was generated using the Swagger Codegen project:
- API version: V1
- Build package: io.swagger.codegen.languages.PhpClientCodegen
Requirements
- PHP 5.5 and later
Installation
Composer
composer require Kstmostofa/dingconnect-api-php
Usage
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new Kstmostofa\DingConnect\Api\V1Api( // 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() ); $cancellation_requests = array(new \Kstmostofa\DingConnect\Model\CancellationRequest()); // \Kstmostofa\DingConnect\Model\CancellationRequest[] | An explicit list of records to cancel. try { $result = $apiInstance->cancelTransfers($cancellation_requests); print_r($result); } catch (Exception $e) { echo 'Exception when calling V1Api->cancelTransfers: ', $e->getMessage(), PHP_EOL; } ?>
Documentation for API Endpoints
All URIs are relative to https://api.dingconnect.com
Documentation For Models
- AccountLookup
- CancelTransfersResponse
- CancellationRequest
- Country
- Currency
- Error
- ErrorDescription
- EstimatePricesResponse
- EstimatedPrice
- EstimationRequest
- GetAccountLookupResponse
- GetBalanceResponse
- GetCountriesResponse
- GetCurrenciesResponse
- GetErrorCodeDescriptionsResponse
- GetProductDescriptionsResponse
- GetProductsResponse
- GetPromotionDescriptionsResponse
- GetPromotionsResponse
- GetProviderStatusResponse
- GetProvidersResponse
- GetRegionsResponse
- IApiResponse
- InternationalDialingInfo
- ListTransferRecordsRequest
- ListTransferRecordsResponse
- LocalizedProductDescription
- LocalizedPromotionDescription
- Price
- Product
- Promotion
- Provider
- ProviderStatus
- Region
- SendTransferRequest
- SendTransferResponse
- Setting
- SettingDefinition
- TransferId
- TransferRecord
- TransferRecordWithErrorCodes
- TransferWithState
Documentation For Authorization
APIKeyHeader
- Type: API key
- API key parameter name: api_key
- Location: HTTP header