with Short.io and 8x8 Connect?
Short.io provides a robust API for URL shortening, allowing you to create, delete, and track shortened links programmatically. By integrating with Pipedream, you can automate link creation or aggregation of click data in real-time, triggering workflows in response to events like link clicks or creating short links in bulk from a data source.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
short: {
type: "app",
app: "short",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.short.io/api/domains`,
headers: {
"Accept": `application/json`,
"Authorization": `${this.short.$auth.secret_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
_8x8_connect: {
type: "app",
app: "_8x8_connect",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this._8x8_connect.$auth.base_url}/api/v1/accounts/${this._8x8_connect.$auth.account_id}/balance`,
headers: {
Authorization: `Bearer ${this._8x8_connect.$auth.api_key}`,
},
})
},
})