PHP code example of leanlink / api

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

    

leanlink / api example snippets


echo $container->get(Leanlink\Leanlink)->resources()->find('a9549cce-de8b-4545-8696-2e6bd401ac23')->getFirstName();

// Token set in construct
$client = new \GuzzleHttp\Client(['headers' => ['X-Auth-Token' => '6147577b-2856-4ff0-b330-ee58ef8a2656']]);
$leanlink = new \Leanlink\Leanlink($client);
echo $leanlink->resources()->find('a9549cce-de8b-4545-8696-2e6bd401ac23')->getFirstName();

// Token provided for each call
$client = new \GuzzleHttp\Client();
$leanlink = new \Leanlink\Leanlink($client);
echo $leanlink->resources('6147577b-2856-4ff0-b330-ee58ef8a2656')->find('a9549cce-de8b-4545-8696-2e6bd401ac23')->getFirstName();