Sign In
or
Sign Up
Home
Applications
Recipes
Home
Applications
Recipes
Sign in
Sign up
Send
Twilio
SMS for new
BILLIVING
invoices
Copy Integration
JavaScript
Copy Integration Recipe
Step 1.
Enter your BILLIVING API credentials
About BILLIVING Credentials:
Log into your BILLIVING account
Go to Settings >
API Integration
Click to generate your api key
More about
BILLIVING Integrations
Step 2.
Enter your TWILIO API credentials
About Twilio Credentials:
Log into your Twilio account
Go to
Settings
to obtain your ACCOUNT SID and AUTH TOKEN
Use your Auth Token for production and Test Auth Token for sandbox
DEFAULT SENDER is your
verified Twilio sender number
(e.g: +1555555555)
DEFAULT RECIPIENT is your own mobile number (e.g: +1555555555) usually used for receiving administrative alerts.
More about
Twilio Integrations
Copy Integration
Copy Integration Programmatically
//install package
npm i apigum-sdk
//usage const {Integration, Apps, AppHelper} = require('apigum-sdk'); const billivingCredentials = {}; const twilioCredentials {}; //set up credentials billivingCredentials[Apps.BILLIVING.Keys.Apikey] = "<< your billiving apikey >>"; //set up credentials twilioCredentials[Apps.Twilio.Keys.Account_Sid] = "<< your twilio account_sid >>"; twilioCredentials[Apps.Twilio.Keys.Auth_Token] = "<< your twilio auth_token >>"; twilioCredentials[Apps.Twilio.Keys.DEFAULT_SENDER] = "<< your twilio default sender >>"; twilioCredentials[Apps.Twilio.Keys.DEFAULT_RECIPIENT] = "<< your twilio default recipient >>"; //obtain api key at https://account.apigum.com/api const apiKey = "<< Your API key >>"; const integration = new Integration(apiKey); //create integration const billiving = AppHelper.configure(Apps.BILLIVING.AppId, this.billivingCredentials); const twilio = AppHelper.configure(Apps.Twilio.AppId, this.twilioCredentials); integration.create(billiving, twilio, Apps.BILLIVING.Integrations.SEND_TWILIO_SMS_FOR_NEW_BILLIVING_INVOICES) .then(id => { // returns id of created integration }) .catch(err => console.log(err))