Your one-stop shop for wholesale. Shop over 85,000 independent brands, all in one place.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
faire: {
type: "app",
app: "faire",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.faire.com/api/v1/products`,
headers: {
"X-FAIRE-ACCESS-TOKEN": `${this.faire.$auth.access_token}`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})