import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
proprofs_knowledge_base: {
type: "app",
app: "proprofs_knowledge_base",
}
},
async run({steps, $}) {
const data = {
"action": `gettoc`,
"api_key": `${this.proprofs_knowledge_base.$auth.api_key}`,
"node_id": `0`,
"type": `all`,
}
return await axios($, {
method: "post",
url: `https://www.helpdocsonline.com/proprofsapi/v1/`,
data,
})
},
})
ProProfs Knowledge Base uses API keys for authentication. When you connect your ProProfs Knowledge Base account, Pipedream securely stores the keys so you can easily authenticate to ProProfs Knowledge Base APIs in both code and no-code steps.