with Hathr AI and OTO?
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: {
oto: {
type: "app",
app: "oto",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.oto.$auth.api_url}/rest/v2/accountInfo`,
headers: {
Authorization: `Bearer ${this.oto.$auth.oauth_access_token}`,
},
})
},
})