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