with All Voice Lab and IBM Cloud - Natural Language Understanding?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
all_voice_lab: {
type: "app",
app: "all_voice_lab",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.all_voice_lab.$auth.api_url}/v1/balance/get_balance`,
headers: {
"ai-api-key": `${this.all_voice_lab.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ibm_cloud_natural_language_understanding: {
type: "app",
app: "ibm_cloud_natural_language_understanding",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.ibm_cloud_natural_language_understanding.$auth.instance_url}/v1/models`,
auth: {
username: `apikey`,
password: `${this.ibm_cloud_natural_language_understanding.$auth.api_key}`,
},
params: {
version: `2022-04-07`,
},
})
},
})