with Attentive and Paazl?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
attentive: {
type: "app",
app: "attentive",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.attentivemobile.com/v1/me`,
headers: {
Authorization: `Bearer ${this.attentive.$auth.api_key}`,
},
})
},
})
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}`,
},
})
},
})