Mobile Marketing | SMS Gateway, Mobile Marketing, Dedicated shortcode, Bulk SMS, 2 Way API
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wire2air: {
type: "app",
app: "wire2air",
}
},
async run({steps, $}) {
const data = {
"To": `{your_to_number}`,
"From": `${this.wire2air.$auth.short_code_number}`,
"Text": `{your_message_text}`,
}
return await axios($, {
method: "post",
url: `https://msgapi.wire2air.com/rest/v1/message/`,
headers: {
"apikey": `${this.wire2air.$auth.api_key}`,
"Content-Type": `application/json`,
},
data,
})
},
})
Wire2Air uses API keys for authentication. When you connect your Wire2Air account, Pipedream securely stores the keys so you can easily authenticate to Wire2Air APIs in both code and no-code steps.
To retrieve your API credentials,
Now, to get your API Key
Finally, to get your Short Code Number