with Wolfram Alpha API and Planpoint?
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: {
planpoint: {
type: "app",
app: "planpoint",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.planpoint.io/api/projects`,
headers: {
"authorization": `${this.planpoint.$auth.oauth_access_token}`,
},
})
},
})