Your smart digital assistant
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
The awork API allows developers to access awork.io content and build
applications on top of the awork platform. With the awork API, you can:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
awork: {
type: "app",
app: "awork",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.awork.io/api/v1/me`,
headers: {
Authorization: `Bearer ${this.awork.$auth.oauth_access_token}`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})