Connect with your customers on Whatsapp, SMS, Messenger and Instagram using automation.
Emit new event when a business gets a new incoming message. See the documentation.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
heyy: {
type: "app",
app: "heyy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hey-y.io/api/v2.0/business`,
headers: {
Authorization: `Bearer ${this.heyy.$auth.api_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})