with PDF Toolkit by CustomJS and Current RMS?
Converts an HTML string to a PDF document. See the documentation
Converts an HTML string to a PNG image. See the documentation
Create a screenshot of a website. See the documentation
Merges multiple PDF documents into one. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
customjs: {
type: "app",
app: "customjs",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.app.customjs.io/core/api-key/${this.customjs.$auth.api_key}`,
headers: {
"x-api-key": `${this.customjs.$auth.api_key}`,
"customjs-origin": `pipedream`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
current_rms: {
type: "app",
app: "current_rms",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.current-rms.com/api/v1/members`,
headers: {
Authorization: `Bearer ${this.current_rms.$auth.oauth_access_token}`,
"x-subdomain": `${this.current_rms.$auth.subdomain}`,
},
})
},
})