accounting-sh/php_sdk

Accounting.sh PHP SDK

0.5.0 2024-07-06 20:06 UTC

This package is auto-updated.

Last update: 2024-09-06 20:31:12 UTC


README

Accounting 是一款一站式会计软件,让您轻松管理所有财务。我们提供免费 API 来控制会计解决方案的各个方面,以下是 PHP SDK。

更多信息,请访问 https://accounting.sh

安装与使用

要求

PHP 8.1 及以上。

Composer

要通过 Composer 安装绑定,请运行以下命令

composer install accounting-sh/php_sdk

入门

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

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


    

$api = new Accounting("auth_token");
$uuid = 'uuid_example'; // string | The account uuid

try {
    $result = $api->accountConnections()->deleteAccountConnection($uuid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling Accounting->accountConnections->deleteAccountConnection: ', $e->getMessage(), PHP_EOL;
}

API 端点

所有 URI 都是相对于 https://api.accounting.sh

授权

### bearer

    - **Type**: API key
    - **API key parameter name**: Authorization
    - **Location**: HTTP header

测试

要运行测试,请使用

composer install
vendor/bin/phpunit

关于此包

此 PHP 包由 OpenAPI Generator 项目自动生成

  • API 版本: 7.5.5
    • 包版本: 0.5.0
  • 生成器版本: 7.6.0-SNAPSHOT