with MojoTxt and All Voice Lab?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mojotxt: {
type: "app",
app: "mojotxt",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.mojotxt.com/api/v1/phoneNumbers/list`,
auth: {
username: `${this.mojotxt.$auth.api_username}`,
password: `${this.mojotxt.$auth.api_password}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
all_voice_lab: {
type: "app",
app: "all_voice_lab",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.all_voice_lab.$auth.api_url}/v1/balance/get_balance`,
headers: {
"ai-api-key": `${this.all_voice_lab.$auth.api_key}`,
},
})
},
})