with HARPA AI and FlippingBook?
Generates a new flipbook from an input PDF file. See the documentation
Locates a specific flipbook using the provided title. See the documentation
Edits an existing flipbook by replacing it with a new input PDF file. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
harpa_ai: {
type: "app",
app: "harpa_ai",
}
},
async run({steps, $}) {
const data = {
"action": "scrape",
"url": "https://harpa.ai/blog",
"grab": [{"selector":".PostList__postTitle","at":"all","label":"data"}],
"node": "4wwg"
}
return await axios($, {
method: "post",
url: `https://api.harpa.ai/api/v1/grid`,
headers: {
Authorization: `Bearer ${this.harpa_ai.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
flippingbook: {
type: "app",
app: "flippingbook",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api-tc.is.flippingbook.com/api/v1/auth/me`,
headers: {
Authorization: `Bearer ${this.flippingbook.$auth.api_key}`,
},
})
},
})