with Voicemaker and Salesforge?
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,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
salesforge: {
type: "app",
app: "salesforge",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.salesforge.ai/public/v2/workspaces`,
headers: {
"authorization": `${this.salesforge.$auth.api_key}`,
},
})
},
})