with Dungeon Fighter Online and Blizzard Battle.net?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dungeon_fighter_online: {
type: "app",
app: "dungeon_fighter_online",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.dfoneople.com/df/servers`,
params: {
apikey: `${this.dungeon_fighter_online.$auth.api_key}`,
},
})
},
})
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}`,
},
})
},
})