PHP code example of martinbean / dribbble-php
1. Go to this page and download the library: Download martinbean/dribbble-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/ */
martinbean / dribbble-php example snippets
$client = new Dribbble\Client;
$client->setAccessToken('Your access token');
try {
$response = $client->makeRequest('/user', 'GET');
} catch (Exception $e) {
print $e->getMessage();
}
try {
// Make request with data that fails validation
} catch (UnprocessableEntityException $e) {
$errors = $e->getErrors();
}