PHP code example of smartlook / webapi

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

    

smartlook / webapi example snippets


$api = new \Smartlook\Webapi\Client();
$api->authenticate(YOUR_API_KEY);
$response = $api->call(API_METHOD, API_PARAMS); // returns array