PHP code example of select-co / module-sage200-api

1. Go to this page and download the library: Download select-co/module-sage200-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/ */

    

select-co / module-sage200-api example snippets


$results = json_decode(
    $this->connector->send(
        'sop_orders',
        'GET',
        $query
    ), true
);

$results = json_decode(
    $this->connector->send(
      'sop_orders/' . $id,
      'GET',
      $query
    ), true
);