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