with Printful (OAuth) and Modelry?
Get details of the product with the specified ID. See the documentation
The Printful (OAuth) API on Pipedream allows you to automate and integrate Printful's on-demand printing and warehousing services into your custom workflows. From syncing e-commerce orders to generating custom notifications on order status updates, you can tailor the Printful API to fit seamlessly into your business processes. This integration is ideal for e-commerce businesses looking to streamline their operations, especially for those who want to synchronize their storefronts with Printful's production pipeline without extensive manual oversight.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
printful_oauth: {
type: "app",
app: "printful_oauth",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.printful.com/oauth/scopes`,
headers: {
Authorization: `Bearer ${this.printful_oauth.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
modelry: {
type: "app",
app: "modelry",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.modelry.ai/api/v1/workspaces`,
headers: {
"Content-Type": `application/json`,
"Authorization": `${this.modelry.$auth.api_token}`,
},
})
},
})