Last active
June 17, 2018 23:21
-
-
Save IbrahimTareq/a191e61fc645f8916e347f8c1733a6cd to your computer and use it in GitHub Desktop.
Code snippet on how to provision an account using the MessageMedia Conversations Node.js SDK.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lib = require('messagemedia-conversations-sdk'); | |
// Configuration parameters and credentials | |
lib.Configuration.basicAuthUserName = "API_KEY"; // The username to use with basic authentication | |
lib.Configuration.basicAuthPassword = "API_SECRET"; // The password to use with basic authentication | |
var controller = lib.ConfigurationController; | |
var request = new lib.ConfigureAccountRequest({ | |
"name": "Rainbow Serpent Festival", | |
"callback_url": "https://callback.url.com" | |
}); | |
controller.createConfigureAccount(request, function(error, response, context) { | |
console.log(error); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment