with Microsoft Dataverse and Countly?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_dataverse: {
type: "app",
app: "microsoft_dataverse",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.microsoft_dataverse.$auth.environment_url}/api/data/v9.2/WhoAmI`,
headers: {
Accept: `application/json`,
Authorization: `Bearer ${this.microsoft_dataverse.$auth.oauth_access_token}`,
"OData-MaxVersion": `4.0`,
"OData-Version": `4.0`,
"Accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
countly: {
type: "app",
app: "countly",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.countly.$auth.server_url}/o/users/me`,
headers: {
"accept": `application/json`,
},
params: {
api_key: `${this.countly.$auth.api_key}`,
},
})
},
})