with Microsoft Dataverse and Modelry?
Get details of the product with the specified ID. See the documentation
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: {
modelry: {
type: "app",
app: "modelry",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.modelry.ai/api/v1/workspaces`,
headers: {
"Content-Type": `application/json`,
"Authorization": `${this.modelry.$auth.api_token}`,
},
})
},
})