with EZ Texting and Alerty?
The iHomefinder API provides real estate data services, including property listings, market info, and lead management. With Pipedream, you can automate how you interact with this data. For instance, you can sync new listings to a CRM, update your website with the latest properties, or trigger marketing emails when a new lead is captured.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ez_texting: {
type: "app",
app: "ez_texting",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://a.eztexting.com/v1/credits`,
headers: {
Authorization: `Bearer ${this.ez_texting.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
alerty: {
type: "app",
app: "alerty",
}
},
async run({steps, $}) {
const data = {
"title": `alerty.dev test notification`,
"message": `My first notification through the Alerty API via Pipedream!`,
}
return await axios($, {
method: "post",
url: `${this.alerty.$auth.notification_url}`,
headers: {
Authorization: `Bearer ${this.alerty.$auth.api_key}`,
},
data,
})
},
})