Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

riffsy

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

riffsy

Wrapper for Riffsy API

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Riffsy API Wrapper

Client interface for accessing Riffsy API.

NPM version

Installation

Install via npm

npm install riffsy --save

Usage

Create a client object to connect to Riffsy API endpoints.

var riffsy = require('riffsy');

var client = new riffsy(RIFFSY_API_KEY);

// Now you are ready to make API calls to Riffsy.

Provide parameters and a standard node callback function.

API calls follow this syntax:

client.action(queryString, callback);

  • queryString - API method parameters as key-value pairs.

Examples

Get GIFs for a given tag or search terms.

client.search(
  {
    tag: 'lol cats'
  },
  function(err, data) {
    if (!err) {
      console.log(data);
    } 
  }
);
client.tags(
  {
    type: 'featured,explore'
  },
  function(err, data) {
    if (!err) {
      console.log(data);
    } 
  }
);
client.trending(
  {
    type: 'audiovideo'
  },
  function(err, data) {
    if (!err) {
      console.log(data);
    } 
  }
);
client.riffs(function(err, data) {
  if (!err) {
    console.log(data);
  } 
});

API Functions

Get GIFs for a given tag or search terms.

tags

Get a list of popular or promoted tags and categories.

Get trending, popular, and promoted GIFs and Videos.

music

Get popular video clips ("Riffs")

riffs

Same as music

reference

License

MIT

Keywords

riffsy

FAQs

Package last updated on 01 May 2016

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