with ActiveCalculator and Wolfram Alpha?
Executes a computation query using the Wolfram Alpha API. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
activecalculator: {
type: "app",
app: "activecalculator",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.activecalculator.com/api/v1/me`,
headers: {
"accept": `application/json`,
"x-ac-api-key": `${this.activecalculator.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wolfram_alpha: {
type: "app",
app: "wolfram_alpha",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.wolframalpha.com/api/v1/llm-api`,
params: {
appid: `${this.wolfram_alpha.$auth.app_id}`,
input: `10`,
},
})
},
})