with CATS and Upstash Redis?
Adds a specific candidate to a job pipeline in CATS. See the documentation
Create a new candidate in your CATS database. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cats: {
type: "app",
app: "cats",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.catsone.com/v3/users`,
headers: {
"Authorization": `Token ${this.cats.$auth.api_key}`,
},
})
},
})
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}`,
},
})
},
})