Giphy
in package
Table of Contents
Properties
- $base : mixed
- $endpoints : mixed
Methods
- __construct() : mixed
- getData() : mixed
- Request data from the GIPHY API
- getItem() : mixed
- Retrieve the embedded item of GIPHY
- getItems() : mixed
- Get giphy items from the connector with the query given
- getUrl() : mixed
- Retrieve the url for a specific endpoint
- isEnabled() : mixed
- Determine whether is it enabled or not
- isValidUrl() : mixed
- Check for a valid GIPHY URL
- search() : mixed
- Search Endpoint
- trending() : mixed
- Trending Endpoint
Properties
$base
private
mixed
$base
= 'https://api.giphy.com/v1/'
$endpoints
private
mixed
$endpoints
= ['search' => '/search', 'trending' => '/trending']
Methods
__construct()
public
__construct(mixed $fd) : mixed
Parameters
- $fd : mixed
getData()
Request data from the GIPHY API
public
getData(mixed $type[, mixed $query = false ]) : mixed
Parameters
- $type : mixed
- $query : mixed = false
Tags
getItem()
Retrieve the embedded item of GIPHY
public
getItem(mixed $url) : mixed
Parameters
- $url : mixed
Tags
getItems()
Get giphy items from the connector with the query given
public
getItems(mixed $query, mixed $type) : mixed
Parameters
- $query : mixed
- $type : mixed
Tags
getUrl()
Retrieve the url for a specific endpoint
public
getUrl(mixed $endpoint, mixed $type) : mixed
Parameters
- $endpoint : mixed
- $type : mixed
Tags
isEnabled()
Determine whether is it enabled or not
public
isEnabled() : mixed
Tags
isValidUrl()
Check for a valid GIPHY URL
public
isValidUrl(mixed $url) : mixed
Parameters
- $url : mixed
Tags
search()
Search Endpoint
public
search(mixed $query) : mixed
Parameters
- $query : mixed
Tags
trending()
Trending Endpoint
public
trending() : mixed