with SMS-IT and Blizzard Battle.net?
The SMS-IT API provides a way to send and receive SMS messages programmatically. Using Pipedream, you can create event-driven workflows that leverage this API for a variety of use cases. You can integrate SMS capabilities into your applications, automate notifications, confirmations, or alerts, and engage with your audience through text messages. In Pipedream, you can use pre-built actions or run custom Node.js code to connect with the SMS-IT API, making it a versatile tool for developers looking to add SMS functionality to their services.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sms_it: {
type: "app",
app: "sms_it",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://controlpanel.smsit.ai/apis/getcreditbalance/`,
headers: {
"Content-Type": `application/x-www-form-urlencoded`,
},
params: {
type: `1`,
apikey: `${this.sms_it.$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}`,
},
})
},
})