twilio / authy-ruby

**Deprecated** Ruby library to access the authy API
MIT License
156 stars 47 forks source link

Time request it's to big ! #49

Closed mr3abd closed 5 years ago

mr3abd commented 5 years ago

Hello ,

When make put

     response = Authy::PhoneVerification.start(
       via: params[:sms],
       country_code: @host.country_code,
       phone_number: @host.phone_number
     )

in sing_up have a big number in time request like "1863 ms" that in postman

that will solve when upgrading in the premium plan in twillo ?

mr3abd commented 5 years ago

I try to make SMS request in rails g job but can't provide user a number phone

mr3abd commented 5 years ago

done solved

philnash commented 5 years ago

Glad you got this sorted. And good plan going with a background job. API requests rely on the network as well as the work that the Twilio API has to do when it receives the request. It's best to do them outside of a controller.

If it helps, I wrote up how to send a text message using ActiveJob which has a lot of similarities to what you're doing.