apigiphy
Giphy API made simple.
A node implementation of Giphy API requests. Check GiphyApi for more info.
Install
npm install --save apigiphy
Usage
var giphy = require('apigiphy');
giphy = giphy({api_key:YOUR_GIPHY_API_KEY});
giphy.random({tag:"flip the table"})
.then(function(response){
console.log(response.data.image_original_url);
}, function(error){
console.log(error);
});
Implemented methods
.search({
q: q,
limit: limit,
offset: offset,
rating: rating
stickers: false
}).then(success, error);
.random({
tag: tag,
rating: rating
stickers: false,
}).then(success, error);
.trending({
limit: limit,
rating: rating,
stickers: false
}).then(success, error);
Run the example
git clone https://github.com/Urucas/apigiphy.git && cd apigiphy
make clean && make
node example/simple.js