Integrate Bridge SDK
To write a script that uses the Make SDK to create an automation from your template:
Create a new TypeScript project with an IDE of your choice.
In the project root folder, create the index.ts
file.
Install the Make SDK into the project with npm
: npm install @integromat/sdk
.
Import the MakeSDK
and MakeAPIKey
classes from the @integromat/sdk package
: import {MakeSDK, MakeApiKey} from "@integromat/sdk";
Create the main
function in the script and an instance of the MakeSDK
class in it:
const main = async () => {
const sdk = new MakeSDK({
baseUrl: 'https://eu2.make.com/',
credentials: new MakeApiKey('your_make_api_key')
});
// The rest of the example
}
Store your Make teamId
and the ID of the template you want to use in an object:
const flowOptions = {
teamId: 15543,
templateId: 12635
};
Use the templateOptions
object in the initializeFlowFromTemplate
method to initialize the scenario creation flow and print the publicUrl
property of the resulting object:
const flow = await sdk.instances.initializeFlowFromTemplate(flowOptions);
console.log(flow.publicUrl)
Call the main
function in the script.
import {MakeSDK, MakeApiKey} from "@integromat/sdk";
const main = async () => {
const sdk = new MakeSDK({
baseUrl: 'https://eu2.make.com/',
credentials: new MakeApiKey('your_make_api_key')
Last updated