with Yext and ProProfs Knowledge Base?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
yext: {
type: "app",
app: "yext",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.yext.$auth.api_url}/v2/accounts`,
headers: {
Authorization: `Bearer ${this.yext.$auth.oauth_access_token}`,
},
params: {
access_token: `${this.yext.$auth.oauth_access_token}`,
"v": `20240120`,
},
})
},
})
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,
})
},
})