with Allocadence and Getty Images?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
allocadence: {
type: "app",
app: "allocadence",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.allocadence.com/rest/items`,
auth: {
username: `${this.allocadence.$auth.api_key}`,
password: `${this.allocadence.$auth.api_secret}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
getty_images: {
type: "app",
app: "getty_images",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.gettyimages.com/v3/products`,
headers: {
Authorization: `Bearer ${this.getty_images.$auth.oauth_access_token}`,
"accept": `application/json`,
"api-key": `${this.getty_images.$auth.api_key}`,
},
})
},
})