You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
547 B

/**
* @module resources/pricing/Messaging
* The Twilio Pricing "Messaging" resources
*/
var generate = require('../generate');
module.exports = function(client) {
var baseUrl = '/Messaging';
var countriesUrl = baseUrl + '/Countries';
function Countries(isoCode) {
var api = {};
generate.restFunctions(api, client, ['GET'], countriesUrl + '/' + isoCode);
return api;
}
Countries.get = generate(client, 'GET', countriesUrl);
Countries.list = Countries.get;
return {countries: Countries};
}