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