PHP code example of kevincobain2000 / gfycat

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

    

kevincobain2000 / gfycat example snippets


$gfycat = new Gfycat($this->clientId, $this->clientSecret);

$gfyid = 'heartfeltsorrowfulbushsqueaker';
$response = $gfycat->get($gfyid);

$gfycat = new Gfycat($this->clientId, $this->clientSecret);

$query = 'keywords';
$response = $gfycat->search($query);