Purest

NPM Package Version Build Status - Travis CI Test Coverage - Coveralls Test Coverage - Codecov

Purest is a generic REST API client library that can be used with any REST API, any HTTP client library and any Promise implementation:

var request = require('request')
var promise = require('bluebird')
var purest = require('purest')({request, promise})
var config = require('@purest/providers')
var google = purest({provider: 'google', config})

var req = google
  .query('youtube')
  .select('channels')
  .where({forUsername: 'CaseyNeistat'})
  .auth('[ACCESS_TOKEN]')
  .request()

req
  .catch((err) => {})
  .then((result) => {})

results matching ""

    No results matching ""