with Grafana and IBM Cloud - Natural Language Understanding?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
grafana: {
type: "app",
app: "grafana",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.grafana.$auth.domain}/api/org/`,
headers: {
Authorization: `Bearer ${this.grafana.$auth.service_account_token}`,
"accept": `application/json`,
},
})
},
})
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`,
},
})
},
})