gip

giphy

🖼 A simple wrapper for giphy that support all endpoints

Showing:

Popularity

Downloads/wk

1.6K

GitHub Stars

10

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

1

Size (min+gzip)

25.9KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Node Giphy Build Status

Greenkeeper badge

Play around with Giphy's api in node

Eagle playing with spinkler

Node Giphy is a simple wrapper around Giphy's api.

Install

$ npm install giphy

Usage

First you will need to use the development api key to test. It is dc6zaTOxFJmzC but do not use this for production.

Information about production keys here

Authentication
var giphy = require( 'giphy' )( 'put key here' );

// or

var Giphy = require( 'giphy' )
  , giphy = new Giphy( 'put key here');
Methods

To see all available methods

console.log( giphy.getMethods() );
Available Methods
  • search
  • gifs ( multiple ids )
  • gif ( single id )
  • trending
  • search
  • translate

all methods pretty much have same api.

giphy[ methodName ]( [options,] callback );

so this url

http://api.giphy.com/v1/gifs?ids=feqkVgjJpYtjy,7rzbxdu0ZEXLy

would translate into

giphy.gifs( { ids : [ 'feqkVgjJpYtjy', '7rzbxdu0ZEXLy' ]}, handleGifs );

options object is optional as well, eg.

giphy.trending( handleTrending );
Callback payloads

giphy uses the convention of error first then data. We also pass back some request information as well in the third argument

function handleTrending( err, trending, res ) {
  // ...
}
giphy.trending( handleTrending );
See all the endpoints and params here

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial