Empowering Minds with Tech Knowledge.

How to setup OTP SMS API in your code?

How to setup OTP SMS API in your code?

16/October/2024 18:39    Comments (15)     Share:        Bookmark

1. Once you purchased the OTP SMS service, you will get login details to the panel.

2. Use the login details given to you in your client area to login into the panel or you can click on "Login to Panel" Button. If you see below window, click on "Send anyway" Button.



3. Now, your panel will open. Click on the rocket button in the bottom of the page.

4. Copy the User and Key from the from the Request API.



5. Use below PHP code to send the OTP from your website/application. If you want, you can use API to integrate in any language. We are using PHP here, because of high demand by users.

$num="User mobile here";
$otp="OTP to send";
$dv_user="enter user ID here";
$dv_key="Enter key here";
$arrContextOptions=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
$otp_url="http://otp.xhost.co.in/submitsms.jsp?user=$dv_user&key=$dv_key&mobile=+91$num&message=Hi%20Dear%2C%20Your%20Otp%20is%20$otp.%20OTP%20request%20for%20OTP.%20Don%27t%20Share%20with%20Anyone.%20Thanks%2C%20Team%20SB%20Genus.&senderid=SBGINF&accusage=1";
$response = file_get_contents($otp_url, false, stream_context_create($arrContextOptions));
?>

Comments (15)
  • Connielen

    26/August/2025 02:45

    xenical over the counter - https://asacostat.com/# buy orlistat generic

  • Connielen

    23/August/2025 02:18

    buy forxiga - order generic dapagliflozin 10mg dapagliflozin 10mg generic

  • Connielen

    18/August/2025 10:28

    Palatable blog you possess here.. It’s hard to find high status belles-lettres like yours these days. I really appreciate individuals like you! Rent mindfulness!! https://www.forum-joyingauto.com/member.php?action=profile&uid=48101

  • Connielen

    09/August/2025 10:09

    This is a topic which is in to my heart… Myriad thanks! Exactly where can I upon the phone details due to the fact that questions? order flomax for sale

  • 9d0h2

    21/July/2025 21:49

    More posts like this would make the blogosphere more useful. https://prohnrg.com/

  • Connielen

    21/July/2025 05:44

    The thoroughness in this section is noteworthy. https://ursxdol.com/furosemide-diuretic/

  • Connielen

    18/July/2025 23:30

    This is the tolerant of advise I unearth helpful. pastillas cialis

  • esnvb

    18/July/2025 21:33

    The sagacity in this piece is exceptional. https://buyfastonl.com/isotretinoin.html

  • kin4b

    16/July/2025 22:44

    order viagra online overnight delivery - https://strongvpls.com/# where can i buy viagra online yahoo

  • Connielen

    16/July/2025 02:22

    where can i buy ranitidine - https://aranitidine.com/ order ranitidine 300mg pill

  • ctqsq

    14/July/2025 17:59

    tadalafil troche reviews - https://strongtadafl.com/ is tadalafil available in generic form

  • riqw7

    13/July/2025 02:14

    tadalafil liquid fda approval date - https://ciltadgn.com/# cialis from india

  • mo1qs

    11/July/2025 16:10

    buy cenforce 50mg generic - cenforce 50mg price cenforce 100mg generic

  • 4wotb

    10/July/2025 02:58

    forcan brand - fluconazole 100mg for sale cost forcan

  • vjshu

    07/July/2025 15:23

    where can i buy amoxil - cost amoxicillin buy amoxil no prescription

Leave a Reply

Your email address and mobile will not be published.

Trending Blog
Related Blog

17/October/2024 16:16 Comments (19)
How to replace Fast2SMS?
22/February/2025 18:08 Comments (17)
How to replace Fast2SMS?

Subscribe our Newsletter