Simple and Efficient Business Management Solution.
Emit new event when fresh data is available for a specific collection.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
upbooks: {
type: "app",
app: "upbooks",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.upbooks.io/api/v1/client`,
headers: {
Authorization: `Bearer ${this.upbooks.$auth.oauth_access_token}`,
"API-KEY": `${this.upbooks.$auth.api_key}`,
"Organization-ID": `${this.upbooks.$auth.organization_id}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})