with 8x8 Connect and Richpanel?
Check the status of an SMS Logs export job and to get a download link if its generation has succeeded. See the documentation
Adds a message to an existing ticket. See the documentation
Creates a new support ticket in Richpanel. See the documentation
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
richpanel: {
type: "app",
app: "richpanel",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.richpanel.com/v1/users`,
headers: {
"accept": `application/json`,
"x-richpanel-key": `${this.richpanel.$auth.api_key}`,
},
})
},
})