with Hathr AI and Formatting?
Emit new event when a new document is created. 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}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})