parenthesis/dingconnect-api-php

DingConnect 移动充值 API 的 PHP 客户端。

v1.0.0 2019-05-31 04:50 UTC

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

模型文档

授权文档

APIKeyHeader

  • 类型:API密钥
  • API密钥参数名:api_key
  • 位置:HTTP头