smartselling/fapi-client

此包已废弃,不再维护。作者建议使用 https://github.com/fapi-cz/php-client 包。
此包的最新版本(v0.1.1)没有提供许可证信息。

FAPI API 客户端

v0.1.1 2018-11-08 20:50 UTC

This package is not auto-updated.

Last update: 2019-02-20 19:47:25 UTC


README

安装

推荐通过 Composer 安装

composer require smartselling/fapi-client

使用示例

$fapi = new FAPIClient('username', 'API token');
$fapi->invoice->getAll(); // returns all invoices
$fapi->invoice->get(123); // returns invoice #123
$fapi->invoice->search(['client' => 123]); // returns invoices of client #123
$fapi->client->searchOne(['email' => 'johndoe@example.com']); // returns client by email

文档

您可以在这里找到API文档。