with MoonClerk and Voicemaker?
The MoonClerk API offers a streamlined way to manage and automate payments and billing processes directly within your applications. With Pipedream, you can harness this API to create custom workflows that trigger actions based on payment events, update customer subscriptions, sync with accounting software, and more. It's a powerful tool for businesses looking to automate their financial operations and integrate their payment system with other digital tools.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
moonclerk: {
type: "app",
app: "moonclerk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.moonclerk.com/customers`,
headers: {
"Authorization": `Token token=${this.moonclerk.$auth.api_key}`,
"Accept": `application/vnd.moonclerk+json;version=1`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
voicemaker: {
type: "app",
app: "voicemaker",
}
},
async run({steps, $}) {
const data = {"language": "en-US" }
return await axios($, {
method: "post",
url: `https://developer.voicemaker.in/voice/list`,
headers: {
Authorization: `Bearer ${this.voicemaker.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})