with Order Sender and Microsoft Graph API (daemon app)?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
order_sender: {
type: "app",
app: "order_sender",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://business.ordersender.com/api/v1/op/check`,
headers: {
"accept": `*/*`,
},
params: {
cod: `${this.order_sender.$auth.company_code}`,
token: `${this.order_sender.$auth.api_token}`,
},
})
},
})
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}`,
},
})
},
})