Sign In
or
Sign Up
Home
How it works
Applications
Home
How it works
Applications
Sign in
Sign up
Create
toggl
client for new
BILLIVING
clients
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 TOGGL API credentials
About toggl Credentials:
Log into your toggl account
Click your avatar (bottom-left)
Go to
Profile Settings
page to obtain your
API token
More about
toggl Integrations
Copy Integration
Copy Integration Programmatically
//install package
npm i apigum-sdk
//usage const {Integration, Apps, AppHelper} = require('apigum-sdk'); const billivingCredentials = {}; const togglCredentials {}; //set up credentials billivingCredentials[Apps.BILLIVING.Keys.Apikey] = "<< your billiving apikey >>"; //set up credentials togglCredentials[Apps.toggl.Keys.Api_Token] = "<< your toggl api_token >>"; //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 toggl = AppHelper.configure(Apps.toggl.AppId, this.togglCredentials); integration.create(billiving, toggl, Apps.BILLIVING.Integrations.CREATE_TOGGL_CLIENT_FOR_NEW_BILLIVING_CLIENTS) .then(id => { // returns id of created integration }) .catch(err => console.log(err))