with SpiritMe and PDF-app.net?
Emit new event when an avatar video completes rendering.
Generates a new video using specific voice and avatar props. See the documentation
Convert an image from a URL to a PDF File with PDF-app.net. See the documentation
Split a PDF into multiple PDFs containing the specified number of pages. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
spiritme: {
type: "app",
app: "spiritme",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.spiritme.tech/api/users/current/`,
headers: {
"Authorization": `Token ${this.spiritme.$auth.api_key}`,
"Accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pdf_app_net: {
type: "app",
app: "pdf_app_net",
}
},
async run({steps, $}) {
const data = {
"fileUrl": `https://www.learningcontainer.com/wp-content/uploads/2019/09/sample-pdf-file.pdf`,
"pagesPerSplit": `1`,
"async": `false`,
"fileName": `MyPDF`,
}
return await axios($, {
method: "post",
url: `https://api.pdf-app.net/splitt_PDF`,
headers: {
"Authorization": `${this.pdf_app_net.$auth.api_key}`,
},
data,
})
},
})