with Hathr AI and Channable?
Emit new event when a new document is created. See the documentation
Retrieves a list of all available documents. See the documentation
Uploads a document that can be used in future chat requests. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hathr_ai: {
type: "app",
app: "hathr_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hathr.ai/v1/document/list`,
headers: {
Authorization: `Bearer ${this.hathr_ai.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
channable: {
type: "app",
app: "channable",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.channable.com/v2/companies/${this.channable.$auth.company_id}/projects/${this.channable.$auth.project_id}/orders`,
headers: {
Authorization: `Bearer ${this.channable.$auth.api_token}`,
},
})
},
})