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,
})
},
})
Voicemaker uses API keys for authentication. When you connect your Voicemaker account, Pipedream securely stores the keys so you can easily authenticate to Voicemaker APIs in both code and no-code steps.