PHP code example of pcsg / makerlog-php-client

1. Go to this page and download the library: Download pcsg/makerlog-php-client 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/ */

    

pcsg / makerlog-php-client example snippets




use PCSG\Makerlog\Makerlog;

$Makerlog = new Makerlog();

echo $Makerlog->getUsers()->count();



use PCSG\Makerlog\Makerlog;

$Makerlog = new Makerlog([
    'client_id'     => 'YOUR_CLIENT_ID',
    'client_secret' => 'YOUR_CLIENT_SECRET',
    'access_token'  => 'ACCESS_TOKEN_FROM_THE_USER'
]);

echo $Makerlog->getTasks()->getList();