Socket
Book a DemoInstallSign in
Socket

apigiphy

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apigiphy

Giphy API made simple

0.1.4
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
2
Weekly downloads
 
Created
Source

apigiphy Build Status

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);
  // http://s3.amazonaws.com/giphymedia/media/2jlDkaipGfgGc/200_d.gif
}, function(error){
  console.log(error);  
});

Implemented methods

.search({
  q: q, // search query term or phrase
  limit: limit, // (optional) number of results to return, maximum 100. Default 25
  offset: offset, // (optional) results offset, defaults to 0
  rating: rating // limit results to those rated (y,g, pg, pg-13 or r).,
  stickers: false // (optional) set to true to search stickers api instead of gifs api. Default false
}).then(success, error);

.random({
  tag: tag, // the GIF tag to limit randomness by
  rating: rating // limit results to those rated (y,g, pg, pg-13 or r).
  stickers: false, // (optional) set to true to search stickers api instead of gifs api. Default false
}).then(success, error);

.trending({
    limit: limit, // (optional) number of results to return, maximum 100. Default 25
    rating: rating, // limit results to those rated (y,g, pg, pg-13 or r).
    stickers: false // (optional) set to true to search stickers api instead of gifs api. Default false
}).then(success, error);

Run the example

git clone https://github.com/Urucas/apigiphy.git && cd apigiphy
make clean && make
node example/simple.js

Keywords

gif, giphy, api, images, animation

FAQs

Package last updated on 08 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.