PHP code example of cohesive / sdk

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

    

cohesive / sdk example snippets

 php
$sdk = new cohesive\sdk\CohesiveSDK(
    'https://example.com',
    'api_key',
    'app_id',
    'app_secret'
);
echo $sdk->validateToken($token);