olsgreen/sage-business-cloud-accounting-api
Composer 安装命令:
composer require olsgreen/sage-business-cloud-accounting-api
包简介
This package provides a means easily of interacting with the Sage Business Cloud Accounting API.
README 文档
README
This package provides a means easily of interacting with the Sage Business Cloud Accounting API.
Installation
Add the client to your project using composer.
composer require olsgreen/sage-business-cloud-accounting-api
Usage
Sage require that you exchange your key & secret for an access token, this is then used to access the API.
You can handle authentication and obtain an access token by using my other package that olsgreen/oauth2-sage-business-cloud for the PHP Leagues oAuth2 Client package.
Examples
Creating a basic Contact
$sage = new \Olsgreen\SageBusinessCloud\Accounting\Client([ 'access_token' => 'your_acess_token' ]); $contact = $sage->contacts()->create('Peter Jones', ['CUSTOMER']); // [ // "id" => "4d63c58e4a8943ff81a5b1809b98e58a", // "displayed_as" => "Peter Jones", // "$path" => "/contacts/4d63c58e4a8943ff81a5b1809b98e58a", // "created_at" => "2021-08-10T15:57:42Z", // "updated_at" => "2021-08-10T15:57:42Z", // ... // ]
Endpoint Support
Sage Business Cloud Accounting has numerous endpoints, we have only implemented a limited number so far:
✅ Contacts
✅ Contact Payments
✅ Contact Allocations
✅ Contact Types
✅ Countries
✅ Sales Invoices
✅ Purchase Invoices
✅ Transaction Types
✅ Tax Rates
✅ Journals
➖ Ledger Accounts
➖ Bank Accounts
➖ User
See the API Reference for a full list.
License
See attached license file
Contributions
Pull requests welcome 🙂
统计信息
- 总下载量: 6.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-11