import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
symbl_ai: {
type: "app",
app: "symbl_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.symbl.ai/v1/manage/trackers`,
headers: {
Authorization: `Bearer ${this.symbl_ai.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
},
})
},
})
Symbl.ai uses OAuth authentication. When you connect your Symbl.ai account, Pipedream will open a popup window where you can sign into Symbl.ai and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Symbl.ai API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://api.symbl.ai/oauth2/token:generate
content-type: application/json
accept: application/json
type=application
&
appId={{custom_fields.app_id}}
&
appSecret={{custom_fields.app_secret}}
POST
https://api.symbl.ai/oauth2/token:generate
content-type: application/x-www-form-urlencoded
accept: application/json
type=application
&
appId={{custom_fields.app_id}}
&
appSecret={{custom_fields.app_secret}}