with Nextlead and End?
Emit new event when a lead is added to a list in NextLead. See the documentation
Emit new event when a new lead is captured in NextLead. See the documentation
Emit new event when a lead is updated in NextLead. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nextlead: {
type: "app",
app: "nextlead",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.nextlead.$auth.api_url}/identify-user`,
headers: {
Authorization: `Bearer ${this.nextlead.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ $ }) {
$.flow.exit('Reason for ending the workflow');
},
});