Easy print-on-demand drop shipping and fulfillment warehouse services. Connect your account using OAuth.
Run any Bash in a Pipedream step within your workflow. Refer to the Pipedream Bash docs to learn more.
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}`,
},
})
},
})
# $PIPEDREAM_STEPS file contains data from previous steps
cat $PIPEDREAM_STEPS | jq .trigger.context.id
# Write data to $PIPEDREAM_EXPORTS to return it from the step
# Exports must be written as key=value
echo foo=bar >> $PIPEDREAM_EXPORTS