with npm and pdforge?
Emit new event with the latest count of downloads for an npm package. See the documentation
Emit new event when a new version of an npm package is published. See the documentation
Generate a PDF document from HTML content. See the documentation
Generate a document from a selected template. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pdforge: {
type: "app",
app: "pdforge",
}
},
async run({steps, $}) {
const data = {
"templateId": `${this.pdforge.$auth.template_id}`,
"data": `john@fabrikam.com`,
}
return await axios($, {
method: "post",
url: `https://api.pdforge.com/v1/pdf/sync`,
headers: {
Authorization: `Bearer ${this.pdforge.$auth.api_key}`,
},
data,
})
},
})