parenthesis / dingconnect-api-php
DingConnect 移动充值 API 的 PHP 客户端。
v1.0.0
2019-05-31 04:50 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-09-29 05:02:36 UTC
README
此 PHP 包是由 Swagger Codegen 项目生成的
- API 版本:V1
- 构建包:io.swagger.codegen.languages.PhpClientCodegen
需求
- PHP 5.5 及以上版本
安装
Composer
composer require parenthesis/dingconnect-api-php
用法
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new Parenthesis\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 \Parenthesis\DingConnect\Model\CancellationRequest()); // \Parenthesis\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; } ?>
API 端点文档
所有 URI 都是相对于 https://api.dingconnect.com
模型文档
- 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
授权文档
APIKeyHeader
- 类型:API密钥
- API密钥参数名:api_key
- 位置:HTTP头