Simple knowledge base(KB) to reduce support requests
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
The neetoKB API enables integration with neetoKB, a knowledge base management service. It allows you to automate the creation, retrieval, updating, and deletion of articles, categories, and sections within your knowledge base. On Pipedream, you can leverage this API to create workflows that streamline content management, collaborate with team members, and synchronize data across multiple platforms. Pipedream's serverless platform also offers real-time processing, event-driven triggers, and connections to hundreds of other apps for extended functionality.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
neetokb: {
type: "app",
app: "neetokb",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.neetokb.$auth.organization_name}.neetokb.com/api/v1/articles`,
headers: {
"Content-Type": `application/json`,
"X-Api-Key": `${this.neetokb.$auth.api_key}`,
},
params: {
term: `test`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})