7digital-api
Version:
7digital API client for nodeJS
36 lines (34 loc) • 1.18 kB
JavaScript
var path = require('path');
module.exports = {
// Path to the json file defining the remote api resources and actions
// and how they map to classes and methods on the API wrapper.
//
// @type string
schemapath: path.join(__dirname, 'assets/7digital-api-schema.json'),
// Your API consumer key for accessing oauth secured endpoints
// see http://api.7digital.com/1.2/static/documentation/7digitalpublicapi.html#Introduction
//
// @type string
consumerkey: 'YOUR_KEY_HERE',
// Your oauth consumer secret for signing oauth secured request urls.
//
// @type string
consumersecret: 'YOUR_SECRET_HERE',
// Enables verbose logging to the console of all api requests and responses
// when set to true.
//
// @type boolean
debug: true,
// The desired format of API responses
// Sets format to JSON by default
//
// @type string
format: 'json',
// A logger object for outputting messages. This should be an obect, which
// has function properties for each of the npm loglevels. Winston provides
// a default implementation.
//
// @type {Winston.Logger} or any object which defines methods for each of
// the npm loglevels.
logger: require('./lib/logger')
};