biwse/biwse-php

Biwse PHP 库提供对 Biwse API 的访问。

1.0.1 2019-07-30 11:58 UTC

This package is auto-updated.

Last update: 2024-09-29 05:42:21 UTC


README

此 API 文档由 OpenAPI 规范生成。

要求

PHP 5.5 及以上版本

安装

通过 Composer 安装库。运行以下命令

composer require biwse/biwse-php

示例

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer authorization: bearerAuth
$config = Biwse\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Biwse\Api\AppApi(
    // 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(),
    $config
);
$app_id = 'YOUR_APP_ID'; // string | The application identidier
$coin = 'btc'; // string | The wallet identidier

try {
    $result = $apiInstance->createAddress($app_id, $coin);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AppApi->createAddress: ', $e->getMessage(), PHP_EOL;
}

?>

API 端点文档

所有 URI 都是相对于 https://api.biwse.com/v1