Sign In
or
Sign Up
Home
How it works
Applications
Home
How it works
Applications
Sign in
Sign up
Send
SendGrid
emails for new
BILLIVING
purchase orders
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 SENDGRID API credentials
About SendGrid Credentials:
Log into your SendGrid account
Go to
Settings >
API Keys
Click the Create API Key button and save it with full access
You can then copy your API Key
More about
SendGrid Integrations
Copy Integration
Copy Integration Programmatically
//install package
npm i apigum-sdk
//usage const {Integration, Apps, AppHelper} = require('apigum-sdk'); const billivingCredentials = {}; const sendgridCredentials {}; //set up credentials billivingCredentials[Apps.BILLIVING.Keys.Apikey] = "<< your billiving apikey >>"; //set up credentials sendgridCredentials[Apps.SendGrid.Keys.Apikey] = "<< your sendgrid apikey >>"; sendgridCredentials[Apps.SendGrid.Keys.Sender_Name] = "<< your sendgrid sender-name >>"; sendgridCredentials[Apps.SendGrid.Keys.Sender_Email] = "<< your sendgrid sender-email >>"; sendgridCredentials[Apps.SendGrid.Keys.Recipient_Email] = "<< your sendgrid recipient-email >>"; //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 sendgrid = AppHelper.configure(Apps.SendGrid.AppId, this.sendgridCredentials); integration.create(billiving, sendgrid, Apps.BILLIVING.Integrations.SEND_SENDGRID_EMAILS_FOR_NEW_BILLIVING_PURCHASE_ORDERS) .then(id => { // returns id of created integration }) .catch(err => console.log(err))