import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
loopmessage: {
type: "app",
app: "loopmessage",
}
},
async run({steps, $}) {
const data = {
"contact": `test@google.com`,
}
return await axios($, {
method: "post",
url: `https://lookup.loopmessage.com/api/v1/contact/lookup/`,
headers: {
"Content-Type": `application/json`,
"Authorization": `${this.loopmessage.$auth.authorization_key}`,
"Loop-Secret-Key": `${this.loopmessage.$auth.secret_api_key}`,
},
data,
})
},
})
Trigger when a new message is received on LoopMessage platform. See the documentation
Emit new event when an alert is received via webhook. See the documentation
Action to submit your request to the sending queue. When a request in the queue will be ready to send a reaction in iMessage, an attempt will be made to deliver it to the recipient. See the documentation
Action to send a text in iMessage to an individual recipient. See the documentation
LoopMessage uses API keys for authentication. When you connect your LoopMessage account, Pipedream securely stores the keys so you can easily authenticate to LoopMessage APIs in both code and no-code steps.
Sign in and copy your API Keys from Conversation API settings.