with Strapi and Jooto?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
strapi: {
type: "app",
app: "strapi",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.strapi.$auth.api_url}/api/users`,
headers: {
Authorization: `Bearer ${this.strapi.$auth.api_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
jooto: {
type: "app",
app: "jooto",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.jooto.com/v1/users`,
headers: {
"X-Jooto-Api-Key": `${this.jooto.$auth.api_key}`,
},
})
},
})