Exemple #1
0
function getNewUrl()
{
    $giphy = new Giphy();
    $result = $giphy->random('internet');
    $img = $result->data->image_original_url;
    return $img;
}
Exemple #2
0
<?php

require 'giphy.php';
$giphy = new Giphy();
$text = $_GET['text'];
$search = explode('!gif ', $text);
$search = $giphy->random($keyword);
$return = $search->data->url;
$json = array("text" => $return);
$json = json_encode($json);
echo $json;
Exemple #3
0
 public function __construct($key = 'dc6zaTOxFJmzC')
 {
     self::$key = $key;
 }