PHP code example of bennetgallein / basic-sevdesk-api

1. Go to this page and download the library: Download bennetgallein/basic-sevdesk-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bennetgallein / basic-sevdesk-api example snippets


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');