with Frontify and Getty Images?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
frontify: {
type: "app",
app: "frontify",
}
},
async run({steps, $}) {
const data = {
"query": `query MyQuery {
currentUser {
id
... on AccountUser {
email
}
}
}`,
}
return await axios($, {
method: "post",
url: `https://${this.frontify.$auth.domain}/graphql`,
headers: {
Authorization: `Bearer ${this.frontify.$auth.oauth_access_token}`,
},
data,
})
},
})
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}`,
},
})
},
})