with Payhere and CloudTalk?
Payhere, powered by Xendit, offers a powerful API that allows you to craft seamless payment experiences within your apps and websites. By leveraging this API on Pipedream, you can automate payment processing, synchronize transaction data with accounting systems, or trigger communication based on payment events. Pipedream's serverless platform enables the orchestration of Payhere with an array of other services to streamline financial operations, enhance customer engagement, and maintain robust financial records.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
payhere: {
type: "app",
app: "payhere",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.payhere.$auth.environment}.payhere.co/api/v1/user`,
headers: {
Authorization: `Bearer ${this.payhere.$auth.api_key}`,
},
})
},
})
The CloudTalk API facilitates advanced telephony capabilities, letting you streamline communication workflows, from call tracking and analytics to automating customer support processes. With Pipedream's integration, you can effortlessly connect CloudTalk to a myriad of other apps and services, enabling you to automate actions based on call events, synchronize customer data across platforms, and trigger communication sequences without manual intervention.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cloudtalk: {
type: "app",
app: "cloudtalk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://my.cloudtalk.io/api/calls/index.json`,
auth: {
username: `${this.cloudtalk.$auth.api_key}`,
password: `${this.cloudtalk.$auth.api_secret}`,
},
})
},
})