๐๐ฒ ๐ฌ one time password SMS library for bulkSMS gateway
this library will help you to send SMS and one time passwords for authentication in your application throught bulkSMS gateway
-
open an account on BulkSMS website https://www.bulksms.com/account/#!/registration
-
download the otp.jar file (https://github.com/lashka12/OTP/blob/master/otp/otp.jar)
-
add the jar file to your project libraries
-
BulkSMS.authenticate("username", "password");
-
BulkSMS.generateOTP(digits, alphanomeric);
- digits = the length of the otp (1,2,3,.....) .
- alphanomeric = otp including alphanomeric letters or not (True ,False) .
-
BulkSMS.sendSms("country code", "phone number", "sms body : " + otp);
-
feel free to use and have fun ๐