with Richpanel and Brandblast?
Adds a message to an existing ticket. See the documentation
Creates a new support ticket in Richpanel. See the documentation
Updates the status of an existing ticket in Richpanel. See the documentation
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
brandblast: {
type: "app",
app: "brandblast",
}
},
async run({steps, $}) {
const data = {
"user_email": `${this.brandblast.$auth.email}`,
"user_password": `securePassword123!`,
"should_reset_password": `false`,
}
return await axios($, {
method: "post",
url: `https://dashboard.brandblast.ai/api/v1/createUser`,
headers: {
"x-api-key": `${this.brandblast.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})