UNPKG

mangopay4-nodejs-sdk

Version:

Mangopay Node.js SDK

23 lines (18 loc) • 546 B
/** * @module Responses */ const _ = require('underscore'); const Service = require('../service'); const Responses = Service.extend({ /** * Get response from previous call * @param {Function} callback Callback function * @param {Object} options Request options * @return {Object} Request promise */ get: function(callback, options) { options = this._api._getOptions(callback, options); return this._api.method('responses_get', callback, options); } }); module.exports = Responses;