kevincobain2000 / gfycat
A PHP interface to the Gfycat API.
v1.0
2017-11-15 00:55 UTC
Requires
- rmccue/requests: >=1.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
- squizlabs/php_codesniffer: 1.*
This package is auto-updated.
Last update: 2024-12-09 15:01:04 UTC
README
PHP Interface to Gfycat, GET and SEARCH
Install
composer require kevincobain2000/gfycat
composer update -vvv
Setup
Get Your ClientId and ClientSecret from Gfycat developer console
Usage
Get
$gfycat = new Gfycat($this->clientId, $this->clientSecret);
$gfyid = 'heartfeltsorrowfulbushsqueaker';
$response = $gfycat->get($gfyid);
Search
$gfycat = new Gfycat($this->clientId, $this->clientSecret);
$query = 'keywords';
$response = $gfycat->search($query);
Tests
vendor/bin/phpunit