with Spider and Wolfram Alpha?
Executes a computation query using the Wolfram Alpha API. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
spider: {
type: "app",
app: "spider",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.spider.cloud/data/profile`,
headers: {
Authorization: `Bearer ${this.spider.$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`,
},
})
},
})