with IBM Cloud - Natural Language Understanding and Upstash Redis?
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`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
upstash_redis: {
type: "app",
app: "upstash_redis",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.upstash_redis.$auth.upstash_redis_rest_url}/set/foo/bar`,
headers: {
Authorization: `Bearer ${this.upstash_redis.$auth.uptash_redis_rest_token}`,
},
})
},
})