import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
plivo: {
type: "app",
app: "plivo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.plivo.com/v1/Account/${this.plivo.$auth.auth_id}/Message/`,
auth: {
username: `${this.plivo.$auth.auth_id}`,
password: `${this.plivo.$auth.auth_token}`,
},
})
},
})
Plivo uses API keys for authentication. When you connect your Plivo account, Pipedream securely stores the keys so you can easily authenticate to Plivo APIs in both code and no-code steps.
All requests to Plivo API are authenticated with BasicAuth using your AUTH ID and AUTH TOKEN. Your Plivo AUTH ID and AUTH TOKEN can be found when you login to your dashboard.