with FlippingBook and Currents API?
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: {
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
currents_api: {
type: "app",
app: "currents_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.currentsapi.services/v1/search?language=us&keywords=amazon&apiKey=${this.currents_api.$auth.api_token}`,
})
},
})