PHP code example of eddiezane / tinyhttp
1. Go to this page and download the library: Download eddiezane/tinyhttp 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/ */
eddiezane / tinyhttp example snippets
php
$client = new \TinyHttp('http://api.giphy.com');
echo $client->get('/v1/gifs/random', null, array('api_key' => 'dc6zaTOxFJmzC'))->body;