horrentotaal/bumbal-client

1.0.0 2020-11-20 07:44 UTC

This package is auto-updated.

Last update: 2024-09-29 05:43:05 UTC


README

Bumbal API 文档

此 PHP 包由 Swagger Codegen 项目自动生成

  • API 版本:2.0
  • 构建包:io.swagger.codegen.languages.PhpClientCodegen

需求

PHP 5.4.0 及以上

安装 & 使用

Composer

要安装绑定,请在 composer.json 中添加以下内容

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/bumbal/bumbal-client-api-php.git"
    }
  ],
  "require": {
    "bumbal/bumbal-client-api-php": "*@dev"
  }
}

然后运行 composer install

手动安装

下载文件并包含 autoload.php

    require_once('/path/to//autoload.php');

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门指南

请遵循 安装过程,然后运行以下命令

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

// Configure API key authorization: api_key
BumbalClient\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// BumbalClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');

$api_instance = new BumbalClient\Api\ActivityApi();
$activity_id = 789; // int | ID of the activity to delete

try {
    $result = $api_instance->deleteActivity($activity_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ActivityApi->deleteActivity: ', $e->getMessage(), PHP_EOL;
}

?>

API 端点文档

所有 URI 都是相对于 https:///api/v2

模型文档

授权说明文档

api_key

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

作者

gerb@bumbal.eu