with eBay and Sanity?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ebay: {
type: "app",
app: "ebay",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://apiz.ebay.com/commerce/identity/v1/user/`,
headers: {
Authorization: `Bearer ${this.ebay.$auth.oauth_access_token}`,
"content-type": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sanity: {
type: "app",
app: "sanity",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.sanity.$auth.project_id}.api.sanity.io/v2021-06-07/data/query/production`,
headers: {
Authorization: `Bearer ${this.sanity.$auth.api_token}`,
},
params: {
query: `*`,
},
})
},
})