with Wolfram Alpha API and Azure DevOps (Microsoft Entra ID OAuth)?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wolfram_alpha_api: {
type: "app",
app: "wolfram_alpha_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.wolframalpha.com/v2/query`,
params: {
input: `Calculate server capacity needed for 1M concurrent users with 99.99% uptime`,
format: `image,plaintext`,
output: `JSON`,
appid: `${this.wolfram_alpha_api.$auth.app_id}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
azure_devops_microsoft_entra_id_oauth: {
type: "app",
app: "azure_devops_microsoft_entra_id_oauth",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://dev.azure.com/${this.azure_devops_microsoft_entra_id_oauth.$auth.organization}/_apis/projects`,
headers: {
Authorization: `Bearer ${this.azure_devops_microsoft_entra_id_oauth.$auth.oauth_access_token}`,
"content-type": `application/json`,
},
params: {
"api-version": `7.1`,
},
})
},
})