with OpenPerplex and Documenterra?
Get a screenshot of a website using Openperplex. See the documentation
Queries content from a specific URL using Openperplex. See the documentation
Perform a simple search using Openperplex. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
openperplex: {
type: "app",
app: "openperplex",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://5e70fd93-e9b8-4b9c-b7d9-eea4580f330c.app.bhs.ai.cloud.ovh.net/get_website_text`,
headers: {
"X-API-Key": `${this.openperplex.$auth.api_key}`,
},
params: {
url: `https://pipedream.com`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
documenterra: {
type: "app",
app: "documenterra",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.documenterra.$auth.portal_url}/api/v1/users`,
auth: {
username: `${this.documenterra.$auth.email}`,
password: `${this.documenterra.$auth.api_key}`,
},
})
},
})