with Osu! and Epic Games?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
osu: {
type: "app",
app: "osu",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://osu.ppy.sh/api/v2/me`,
headers: {
Authorization: `Bearer ${this.osu.$auth.oauth_access_token}`,
"accept": `application/json`,
"content-type": `application/json`,
},
})
},
})
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`,
},
})
},
})