The all-in-one online business platform that gives you every marketing & sales tool you need to grow your business profitably & more đ
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
The Kartra API allows you to interact programmatically with Kartra's marketing automation platform. Through Pipedream, you can leverage this API to create, update, retrieve, and delete various marketing and sales assets managed by Kartra, such as leads, emails, memberships, and more. By integrating Kartra with other apps on Pipedream, you can automate complex workflows, sync data across multiple platforms, and trigger actions based on events within Kartra or external services.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kartra: {
type: "app",
app: "kartra",
}
},
async run({steps, $}) {
const data = {
"app_id": `${this.kartra.$auth.app_id}`,
"api_key": `${this.kartra.$auth.api_key}`,
"api_password": `${this.kartra.$auth.api_password}`,
"lead": {
"email": "enter_an_email_here"
},
"actions": [
{
"cmd": "search_lead"
}
],
}
return await axios($, {
method: "post",
url: `https://app.kartra.com/api`,
headers: {
"Content-Type": `application/x-www-form-urlencoded`,
},
data,
})
},
})
Develop, run and deploy your Node.js code in Pipedream workflows, using it between no-code steps, with connected accounts, or integrate Data Stores and File Stores.
This includes installing NPM packages, within your code without having to manage a package.json
file or running npm install
.
Below is an example of installing the axios
package in a Pipedream Node.js code step. Pipedream imports the axios
package, performs the API request, and shares the response with subsequent workflow steps:
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})