Outbound Cloud Contact Center Software.
Create and update contacts or add events to contacts. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
regal: {
type: "app",
app: "regal",
}
},
async run({steps, $}) {
const data = {
"userId": "testing",
"traits": {
"phones": {
"+19545552399": {}
},
"firstName": "Rebecca",
"lastName": "Greene"
},
"eventSource": "crm"
}
return await axios($, {
method: "post",
url: `https://events.regalvoice.com/events`,
headers: {
"Authorization": `${this.regal.$auth.api_key}`,
},
data,
})
},
})
The Google Maps (Places API) offers detailed information about physical locations, including places of interest, reviews, and other metadata. In Pipedream, you can leverage this API to create dynamic workflows that respond to location data. Whether you're building apps that track asset locations, automate location-based alerts, or provide users with local info, integrating with Google Maps can add a powerful spatial context to your services.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google_maps_platform: {
type: "app",
app: "google_maps_platform",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://maps.googleapis.com/maps/api/place/findplacefromtext/json`,
params: {
key: `${this.google_maps_platform.$auth.api_key}`,
input: `Museum of Contemporary Art Australia`,
inputtype: `textquery`,
},
})
},
})