with pdforge and Frontify?
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,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
frontify: {
type: "app",
app: "frontify",
}
},
async run({steps, $}) {
const data = {
"query": `query MyQuery {
currentUser {
id
... on AccountUser {
email
}
}
}`,
}
return await axios($, {
method: "post",
url: `https://${this.frontify.$auth.domain}/graphql`,
headers: {
Authorization: `Bearer ${this.frontify.$auth.oauth_access_token}`,
},
data,
})
},
})