with QStash and ClickHelp?
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
Creates a new publication from the designated project. This action allows you to share your content with others in various formats. See the documentation
QStash API offers a secure, scalable, and simple way to manage message queues and defer tasks. Using this API, you can enqueue messages, schedule tasks to run after a delay, and ensure that tasks are executed exactly once, leveraging the power of serverless architecture. With Pipedream's ability to connect to a multitude of services, you can build complex workflows that trigger actions in other apps based on events in QStash, allowing you to automate cross-application business processes with ease.
import { axios } from '@pipedream/platform';
export default defineComponent({
props: {
qstash: {
type: "app",
app: "qstash",
},
callback_url: {
type: "string",
label: "Callback URL",
description: "A URL that will be called by QStash with the body given",
},
delay: {
type: "integer",
label: "Delay",
description: "Delay the HTTP request to the callback URL (seconds)",
default: 0,
}
},
async run({steps, $}) {
return axios($, {
url: `https://qstash.upstash.io/v2/publish/${this.callback_url}`,
method: 'POST',
headers: {
'Authorization': `Bearer ${this.qstash.$auth.qstash_token}`,
'Upstash-Delay': `${this.delay}s`
},
data: {
hello: 'world'
}
});
}
})
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}`,
},
})
},
})