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