Computational intelligence engine - use this app to connect Wolfram Alpha APIs using `http://api.wolframalpha.com` base URL, such as Full Results and Short Answers APIs.
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: {
persanaai: {
type: "app",
app: "persanaai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api2.persana.ai/api/v1/rapid-api/company/profile`,
headers: {
"x-api-key": `${this.persanaai.$auth.api_key}`,
},
params: {
domain: `google.com`,
},
})
},
})