appscene
Version:
API Client for appscene.io
17 lines (15 loc) • 467 B
JavaScript
var api = require('./lib/api'),
connect = require('./lib/connect');
/*
* Appscene API exposing.
* */
module.exports = function init(token, _apiUrl) {
if(typeof token !== 'string' || !token) {
throw new Error("Appscene: missing access token.");
}
return api(token, _apiUrl);
};
/* Export the connect middleware. */
module.exports.webhook = connect.webhook;
/* Exports the payload signature verification */
module.exports.verifySignature = connect.verify;