with Email on Acid and Microsoft Graph API (daemon app)?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
email_on_acid: {
type: "app",
app: "email_on_acid",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.emailonacid.com/v5/auth`,
headers: {
"accept": `application/json`,
"content-type": `application/json`,
},
auth: {
username: `${this.email_on_acid.$auth.api_key}`,
password: `${this.email_on_acid.$auth.account_password}`,
},
})
},
})
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}`,
},
})
},
})