with Sperse and Wolfram Alpha API?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sperse: {
type: "app",
app: "sperse",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.sperse.com/api/services/Platform/User/GetUsers`,
headers: {
"accept": `application/json;odata.metadata=minimal;odata.streaming=true`,
"api-key": `${this.sperse.$auth.api_key}`,
},
})
},
})
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}`,
},
})
},
})