with Microsoft Graph API (daemon app) and Cronlytic?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_graph_api_daemon_app: {
type: "app",
app: "microsoft_graph_api_daemon_app",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graph.microsoft.com/v1.0/users`,
headers: {
Authorization: `Bearer ${this.microsoft_graph_api_daemon_app.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cronlytic: {
type: "app",
app: "cronlytic",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.cronlytic.com/prog/jobs`,
headers: {
"x-api-key": `${this.cronlytic.$auth.api_key}`,
"x-user-id": `${this.cronlytic.$auth.user_id}`,
},
})
},
})