parenthesis/dingconnect-api-php
Composer 安装命令:
composer require parenthesis/dingconnect-api-php
包简介
A PHP Client for the DingConnect Mobile Top-Up API.
关键字:
README 文档
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 parenthesis/dingconnect-api-php
Usage
<?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; } ?>
Documentation for API Endpoints
All URIs are relative to https://api.dingconnect.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| V1Api | cancelTransfers | POST /api/V1/CancelTransfers | Attempt to cancel transfers with the submitted TransferIds |
| V1Api | estimatePrices | POST /api/V1/EstimatePrices | Estimate prices for send or receive values |
| V1Api | getAccountLookup | GET /api/V1/GetAccountLookup | Get providers and product information for a specific account number |
| V1Api | getBalance | GET /api/V1/GetBalance | Get the current agent balance |
| V1Api | getCountries | GET /api/V1/GetCountries | Get a list of supported countries |
| V1Api | getCurrencies | GET /api/V1/GetCurrencies | Get a list of supported currencies |
| V1Api | getErrorCodeDescriptions | GET /api/V1/GetErrorCodeDescriptions | Get a list of error code descriptions |
| V1Api | getProductDescriptions | GET /api/V1/GetProductDescriptions | Get localized strings for products |
| V1Api | getProducts | GET /api/V1/GetProducts | Get a list of products that can be used in SendTransfer |
| V1Api | getPromotionDescriptions | GET /api/V1/GetPromotionDescriptions | Get localized strings for promotions |
| V1Api | getPromotions | GET /api/V1/GetPromotions | Get a list of promotions |
| V1Api | getProviderStatus | GET /api/V1/GetProviderStatus | Get the current status of product providers |
| V1Api | getProviders | GET /api/V1/GetProviders | Get a list of product providers available to the agent |
| V1Api | getRegions | GET /api/V1/GetRegions | Get a list of regions on the system |
| V1Api | listTransferRecords | POST /api/V1/ListTransferRecords | Query transfers that were submitted to the system |
| V1Api | sendTransfer | POST /api/V1/SendTransfer | Send a transfer to an account |
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
parenthesis/dingconnect-api-php 适用场景与选型建议
parenthesis/dingconnect-api-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 83 次下载、GitHub Stars 达 5, 最近一次更新时间为 2019 年 05 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「api」 「sdk」 「swagger」 「dingconnect」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 parenthesis/dingconnect-api-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 parenthesis/dingconnect-api-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 parenthesis/dingconnect-api-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Alfabank REST API integration
Zero-dependency raw PHP DNS resolver, domain-ownership verification, and intoDNS/MxToolbox-style diagnostics. Queries authoritative nameservers directly over sockets — never trusts the recursive cache for ownership checks.
A lightweight plain-PHP framework for database-backed CRUD APIs.
bughq error tracking - PHP SDK
ABsurge PHP SDK for feature flags and A/B testing
统计信息
- 总下载量: 83
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-31