with Leadpops and Sanity?
The Leadpops API provides a toolkit for optimizing lead conversion for real estate and mortgage professionals. By integrating Leadpops with Pipedream, users can automate lead capture processes, streamline follow-up communications, and synchronize lead information across various marketing and CRM platforms. Pipedream’s serverless execution model and easy-to-use interface allow for building complex workflows to act upon data received from Leadpops without delving deep into coding.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
leadpops: {
type: "app",
app: "leadpops",
}
},
async run({steps, $}) {
const data = {
"funnel": `SalCompany.clixwithus.com`,
"from_date": `2022-03-20`,
"to_date": `2022-03-20`,
"limit": `100`,
}
return await axios($, {
method: "post",
url: `http://api.leadpops.com/api/v1/leads`,
headers: {
"Content-Type": `application/json`,
"leadpops-authorization": `${this.leadpops.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sanity: {
type: "app",
app: "sanity",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.sanity.$auth.project_id}.api.sanity.io/v2021-06-07/data/query/production`,
headers: {
Authorization: `Bearer ${this.sanity.$auth.api_token}`,
},
params: {
query: `*`,
},
})
},
})