I am trying to work with Authy verification; however, I am not able to work with it. I am currently using Parse Server with CloudCode to work with it, here is a snapshot of the code :
Parse.Cloud.define("SendSMS", async (request) => {
client.verify.services.create({
friendlyName: 'verificationService'
})
.then(service => {
console.log('service 1 ', service);
}, err => {
console.error('err ', err);
});
});
The problem is that Twilio's API throws :
{ [Error: Too many requests]
status: 429,
message: 'Too many requests',
code: 20429,
moreInfo: 'https://www.twilio.com/docs/errors/20429',
detail: undefined }
By the way, when trying to send SMS it works without any issues "using client.sendSms()" the issue is only related with "client.verify.services.create()"