with Epic Games and Upstash Redis?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
epic_games: {
type: "app",
app: "epic_games",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.epicgames.dev/epic/id/v2/accounts`,
headers: {
Authorization: `Bearer ${this.epic_games.$auth.oauth_access_token}`,
},
params: {
accountId: `your_account_id`,
},
})
},
})
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}`,
},
})
},
})