import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
todoist: {
type: "app",
app: "todoist",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.todoist.com/rest/v1/projects`,
headers: {
Authorization: `Bearer ${this.todoist.$auth.oauth_access_token}`,
},
})
},
})
export default defineComponent({
props: {
http: {
type: "http_request",
default: {
method: "GET",
url: "http://api.open-notify.org/iss-now.json",
}
}
},
async run({steps, $}) {
return await this.http.execute()
},
})