with Fauna and ClickHelp?
Emit new event each time you add or remove a document from a specific collection, with the details of the document.
Emit new event when a topic is created. See the documentation
Generates a backup of the specified project. This action ensures you have a safe copy of your project in case of any unpredicted data loss. See the documentation
Performs an arbitrary authorized GraphQL query. See docs here
Creates a new publication from the designated project. This action allows you to share your content with others in various formats. See the documentation
Produces a new topic in the existing project. A useful action for starting a new chapter or section within your project. See the documentation
Fauna API offers a powerful serverless database solution for modern applications. Its unique capabilities allow for highly scalable, secure, and flexible data management. With Pipedream, you can harness the power of Fauna to create intricate serverless workflows that react to various triggers, manage data efficiently, and connect seamlessly with other services and APIs to automate complex tasks.
module.exports = defineComponent({
props: {
faunadb: {
type: "app",
app: "faunadb",
}
},
async run({steps, $}) {
const faunadb = require('faunadb')
const q = faunadb.query
const client = new faunadb.Client({ secret: this.faunadb.$auth.secret })
// Lists collections in the database tied to your secret key
const collectionsPaginator = await client.paginate(q.Collections())
this.collections = []
await collectionsPaginator.each(page => {
for (const collection of page) {
this.collections.push(collection.id)
}
})
},
})
The ClickHelp API allows technical writers to automate and interact with the ClickHelp documentation platform programmatically. With this API, Pipedream users can create, update, retrieve, and manage documentation projects, topics, and users within ClickHelp. It opens up opportunities to streamline documentation workflows, integrate with content management systems, and trigger notifications based on documentation changes or reviews.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
clickhelp: {
type: "app",
app: "clickhelp",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.clickhelp.$auth.portal_domain}/api/v1/users`,
auth: {
username: `${this.clickhelp.$auth.email}`,
password: `${this.clickhelp.$auth.api_key}`,
},
})
},
})