with Beyond Presence and Microsoft Azure Monitor?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
beyond_presence: {
type: "app",
app: "beyond_presence",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.bey.dev/v1/avatars`,
headers: {
"x-api-key": `${this.beyond_presence.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_azure_monitor: {
type: "app",
app: "microsoft_azure_monitor",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://management.azure.com/subscriptions`,
headers: {
Authorization: `Bearer ${this.microsoft_azure_monitor.$auth.oauth_access_token}`,
},
params: {
"api-version": `2020-01-01`,
},
})
},
})