mcwnuq/php-bbb-api-wrapper

为BuiltByBit的终极REST API提供的PHP包装器。

v1.0.1 2023-07-16 21:51 UTC

This package is auto-updated.

Last update: 2024-09-17 00:46:24 UTC


README

GitHub license

为BuiltByBit的HTTP API提供的PHP包装器。

  • 全面覆盖API。
  • 使用类型提示以实现IDE自动完成和可读性。
  • 动态暂停请求以符合速率限制规则。
  • 除了cURL之外没有其他依赖 - 克隆此仓库即可使用!

使用方法

/examples 目录下可以找到丰富的示例列表

<?php
require __DIR__ . "/../src/APIWrapper.php";

$token = new APIToken(TokenType::PRIVATE, "Find @ https://builtbybit.com/account/api");
$wrapper = new APIWrapper();

if ($error = $wrapper->initialise($token)->getError()) {
    die("API initialisation error: ". $error["message"]);
}

echo $wrapper->members()->fetch(87939)->getData()["username"];

问题 & 支持

无论您是想报告在使用此包装器时遇到的问题,还是需要一般的帮助/支持,请使用问题跟踪器并在创建问题时适当标记。

我会尽量在合理的时间内回应问题。