![]() ![]() This means you can mix and match your quota to send OTPs and normal text messages. OTP keys are the same as normal Textbelt keys. data-urlencode message = 'Nuclear launch code: $OTP! Use it to login.' \Įxample API response from the OTP generation endpoint /otp/generate: length specifies the number of digits in your OTP. Manage and send all of your SMS campaigns from your iOS device using the BulkSMS app.If you set lifetime to 240, the OTP will be valid for 240 seconds or 4 minutes. lifetime will determine how many seconds the OTP is valid for.Use the $OTP variable to include the OTP. message will replace the default OTP message.There are a few parameters you can add to your /otp/generate request: Send and verify OTPs by creating an API key. Supply the otp to verify, a userid, and your Textbelt key via GET request: Textbelt will tell you if that code is valid. For example, a Brazilian phone number is 5511912345678 and a UK phone number is 447712345678.Īfter the user receives the text message, they'll input the verification code in your app. To text internationally, use the E.164 format when setting phone ( country code with numbers, no spaces). You'll need your own key to send an actual OTP. Use key "example_otp_key" to send an example one-time password. Try it now! userid can be anything that uniquely identifies users. JSONObject response = new JSONObject (responseString ) setEntity ( new UrlEncodedFormEntity ( Arrays. New BasicNameValuePair ( "key", "example_otp_key" ) Privacy Policy Terms
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |