with Blizzard Battle.net and Membership.io?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
battle_net: {
type: "app",
app: "battle_net",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.battle_net.$auth.region}.api.blizzard.com/d3/data/item-type?locale=fr_FR`,
headers: {
Authorization: `Bearer ${this.battle_net.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
membership_io: {
type: "app",
app: "membership_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.membership.io/api/v2/me`,
headers: {
Authorization: `Bearer ${this.membership_io.$auth.oauth_access_token}`,
},
})
},
})