Visit our Knowledge Base for documentation and more information. Edit this JS Bin to view the full JavaScript.
Connect an account and save its token via the callback.
const authButton = document.getElementById("launch-auth"); const authOptions = {"client_id": APP_ID, "scope": "crm accounting"}; Kloudless.auth.authenticator(authButton, authOptions, (result) => { window.accountToken = result.access_token; });
The example below prompts the user to map Contact fields.
const mapper = new Kloudless.mapper(); mapper.launch({ appId: APP_ID, kloudlessObjectName: "contact", // The bearer token to the user's account from Step 1 token: window.accountToken, });