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}`,
},
})
},
})
Upstash Redis uses API keys for authentication. When you connect your Upstash Redis account, Pipedream securely stores the keys so you can easily authenticate to Upstash Redis APIs in both code and no-code steps.