Lahar

Increase your sales with marketing automation software that makes your digital strategy simple.

Integrate the Lahar API with the Bash API

Setup the Lahar API trigger to run a workflow which integrates with the Bash API. Pipedream's integration platform allows you to integrate Lahar and Bash remarkably fast. Free for developers.

Run Bash Code with the Bash API

Run any Bash in a Pipedream step within your workflow. Refer to the Pipedream Bash docs to learn more.

 
Try it

Overview of Lahar

The Lahar API enables users to automate and integrate their marketing efforts, facilitating lead management, email campaigns, and analytics. On Pipedream, you can leverage these capabilities to build serverless workflows that respond to events in real-time, sync data across various platforms, and create custom marketing automations without managing infrastructure.

Connect Lahar

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    lahar: {
      type: "app",
      app: "lahar",
    }
  },
  async run({steps, $}) {
    const data = {
      "token_api_lahar": `${this.lahar.$auth.api_token}`,
      "email_contato": `{email_address}`,
      "estagio_lead": `1`,
    }
    return await axios($, {
      method: "put",
      url: `https://app.lahar.com.br/api/leads`,
      headers: {
        "Content-Type": `application/json`,
      },
      data,
    })
  },
})

Connect Bash

1
2
3
4
5
6
7
# $PIPEDREAM_STEPS file contains data from previous steps
cat $PIPEDREAM_STEPS | jq .trigger.context.id

# Write data to $PIPEDREAM_EXPORTS to return it from the step
# Exports must be written as key=value
echo foo=bar >> $PIPEDREAM_EXPORTS