with Blizzard Battle.net and Netcore Cloud?
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: {
netcore: {
type: "app",
app: "netcore",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://emailapi.netcorecloud.net/v5.1/domain/getDomains`,
headers: {
"api_key": `${this.netcore.$auth.api_key}`,
},
params: {
status: `5`,
},
})
},
})