PHP code example of frontline-development / api-sdk

1. Go to this page and download the library: Download frontline-development/api-sdk 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/ */

    

frontline-development / api-sdk example snippets


$fl = new \Frontline::Client($token, $secret);

var_dump($fl->get('/api/orders'));

$fl = new \Frontline::Client($token, $secret);

$fields = array('field' => 'value');

var_dump($fl->get('/api/orders', $fields));

$fl = new \Frontline::Client($token, $secret);

var_dump($fl->get('/api/orders/{order_id}'));