bennetgallein / basic-sevdesk-api
Basic PHP REST API client for sevDesk accounting software
0.1.4
2023-06-05 16:44 UTC
Requires
- php: >=8.0
- caseyamcl/guzzle_retry_middleware: ^2.3
- guzzlehttp/guzzle: ^6.5|^7.0
README
A simple API wrapper for sevDesk using Guzzle.
Installation
Note: this is a fork.
The recommended way to install is through composer.
composer require bennetgallein/basic-sevdesk-api
Using the api
For REST calls, the api-key is required.
use Iron1902\BasicSevdeskAPI\BasicSevdeskAPI; use Iron1902\BasicSevdeskAPI\Options; // Create options for the API $options = new Options(); $options->setApiKey('YOUR_API_KEY_HERE'); // Create the client $api = new BasicSevdeskAPI($options); //perform your requests $result = $api->rest('GET', 'Invoice');