PHP code example of tutocom / tuto-api-php

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

    

tutocom / tuto-api-php example snippets




$client = new Tuto\Client(API_KEY);
$client->setCredentials(API_LOGIN, API_SECRET);

$infos = $client->contributor->infos();

$stats = $client->contributor->statistics();

$stats = $client->contributor->statistics('rating');

$stats = $client->contributor->statistics('tutorials');

$stats = $client->contributor->statistics('customers');

$stats = $client->contributor->statistics('sales');

{
    "  "tutocom/tuto-api-php" : "0.2.*"
    }
}