with Altiria and HelpSpot?
Send an SMS message. The message will be sent to the phone numbers you specify. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
altiria: {
type: "app",
app: "altiria",
}
},
async run({steps, $}) {
const data = {
"credentials":{
"apikey": `${this.altiria.$auth.api_key}`,
"apisecret": `${this.altiria.$auth.api_secret}`
}
}
return await axios($, {
method: "post",
url: `https://www.altiria.net:8443/apirest/ws/getCredit`,
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
helpspot: {
type: "app",
app: "helpspot",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.helpspot.$auth.subdomain}.helpspot.com/api/index.php`,
headers: {
Authorization: `Bearer ${this.helpspot.$auth.api_token}`,
},
params: {
method: `private.addressbook.getContacts`,
output: `json`,
},
})
},
})