node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

modoapi

Install:

npm install modoapi

require modoapi in your project

example code:

var config = {
    consumer_key: 'ADD_YOUR_CONSUMER_KEY',
    consumer_secret: 'ADD_YOUR_CONSUMER_SECRET',
    api_url: 'MODO_API_URL'
}
var modo = (require('modoapi'))(
            config.consumer_key,
            config.consumer_secret,
            config.api_url
        );
 
 
// Get a list of merchants 
modo.call("merchant/list", null, function (data) {
    console.log("Modo Response", data)
})
 
//Lookup a person by phone 
modo.call("people/lookup_phone", {
                    "phone": "5551230000"
                }, function (user) {
                console.log("User", user);
                })