with Dialpad and Splunk?
Emit new call event subscription. See Event doc and webhook doc
Emit new contact event subscription. See Event doc and webhook doc
Emit new SMS event subscription. See Event doc and webhook doc
Emit new event when a new alert is triggered in Splunk. See the documentation
Emit update contact event subscription. See Event doc and webhook doc
Sends a new event to a specified Splunk index. See the documentation
Retrieve the status of a previously executed Splunk search job. See the documentation
Executes a Splunk search query and returns the results. See the documentation
The Dialpad API taps into the core of Dialpad's communication platform, allowing for the automation of voice and messaging workflows. By leveraging this API through Pipedream, you can interact with call data, manage users, and automate sending of SMS messages, among other tasks. This enables the creation of intricate, automated processes that can enhance business communication efficiency, customer support, and team collaboration within your organization.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dialpad: {
type: "app",
app: "dialpad",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://dialpad.com/api/v2/users/me`,
headers: {
Authorization: `Bearer ${this.dialpad.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform";
import https from "https";
export default defineComponent({
props: {
splunk: {
type: "app",
app: "splunk",
}
},
async run({steps, $}) {
const selfSigned = this.splunk.$auth.self_signed;
const agent = new https.Agent({
rejectUnauthorized: !selfSigned
});
return await axios($, {
url: `${this.splunk.$auth.api_url}:${this.splunk.$auth.api_port}/services/authentication/current-context`,
httpsAgent: agent,
headers: {
"content-type": `application/json`,
"authorization": `Splunk ${this.splunk.$auth.api_token}`,
},
params: {
output_mode: `json`,
},
})
},
})