with Orderspace and CraftMyPDF?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
orderspace: {
type: "app",
app: "orderspace",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.orderspace.com/v1/customers`,
headers: {
Authorization: `Bearer ${this.orderspace.$auth.oauth_access_token}`,
},
params: {
limit: `20`,
},
})
},
})
CraftMyPDF is a powerful API that allows you to create dynamic and customizable PDF documents. By leveraging this API on Pipedream, you can automate the generation of invoices, reports, tickets, and any other document that requires a polished and professional look. Pipedream's serverless platform enables you to connect CraftMyPDF with numerous apps to create workflows that trigger PDF generation from events like form submissions, new database entries, or scheduled jobs.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
craftmypdf: {
type: "app",
app: "craftmypdf",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.craftmypdf.com/v1/list-templates`,
headers: {
"X-API-KEY": `${this.craftmypdf.$auth.api_key}`,
"Content-Type": `application/json`,
},
})
},
})