import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
voxapp: {
type: "app",
app: "voxapp",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://dev-api.voxapp.com/api/v1/assistant`,
headers: {
Authorization: `Bearer ${this.voxapp.$auth.oauth_access_token}`,
},
})
},
})
VoxApp uses OAuth authentication. When you connect your VoxApp account, Pipedream will open a popup window where you can sign into VoxApp and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any VoxApp API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://dev-api.voxapp.com/api/v1/token
accept: application/json
apiKey={{custom_fields.api_key}}
&
apiSecret={{custom_fields.api_secret}}
POST
https://dev-api.voxapp.com/api/v1/refresh-token
accept: application/json
refreshToken={{custom_fields.refresh_token}}