import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
avosms: {
type: "app",
app: "avosms",
}
},
async run({steps, $}) {
const data = {
"Id": `${this.avosms.$auth.id}`,
"Key": `${this.avosms.$auth.key}`,
}
return await axios($, {
method: "post",
url: `https://api.avosms.com/v1/account/balance`,
data,
})
},
})
AvoSMS uses API keys for authentication. When you connect your AvoSMS account, Pipedream securely stores the keys so you can easily authenticate to AvoSMS APIs in both code and no-code steps.