import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
myotp_app: {
type: "app",
app: "myotp_app",
}
},
async run({steps, $}) {
const data = {
"phone_number": this.myotp_app.$auth.phone_number,
}
return await axios($, {
method: "post",
url: `https://api.myotp.app/generate_otp`,
headers: {
"X-API-Key": `${this.myotp_app.$auth.api_key}`,
},
data,
})
},
})
Generate a One Time Password (OTP) and send it to the specified phone number. See the documentation
Validate the OTP for successful verification. See the documentation
MyOTP.App uses API keys for authentication. When you connect your MyOTP.App account, Pipedream securely stores the keys so you can easily authenticate to MyOTP.App APIs in both code and no-code steps.