with Typeflo and HelpDesk?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
typeflo: {
type: "app",
app: "typeflo",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.typeflo.$auth.api_url}/api/headless/content/posts`,
headers: {
Authorization: `Bearer ${this.typeflo.$auth.content_api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
helpdesk: {
type: "app",
app: "helpdesk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.helpdesk.com/v1/agents`,
headers: {
"content-type": `application/json`,
},
auth: {
username: `${this.helpdesk.$auth.account_id}`,
password: `${this.helpdesk.$auth.access_token}`,
},
})
},
})