title: How to hit third party API form node server.
body: <p>IndiaSMS is a thirdparty providing sms service I want to hit this api form node server. Any way to request to third party api. Please help..</p>
  
  <pre><code>var express = require('express');
  var router = express.Router();
  exports.sendOTP = function (userInfo, callback) {
  console.log(userInfo);
      console.log('Inside SendOTP usin indaSMS');
      var indiasmsURL = 'https://app.indiasms.com/sendsms/sendsms.php?username=user&amp;password=pass&amp;type=TEXT&amp;sender=Alerts&amp;mobile=' + userInfo.mobilenumber + '&amp;message=Your%20OTP%20for%203DClubHouse%20is%20' + userInfo.otp + '';
      console.log(indiasmsURL);
      router.get(indiasmsURL,
      function(req, res, next) {
          console.log('--------------------------');
          console.log(res);
          console.log('--------------------------');
      })
      callback('hello');
  };
  </code></pre>
  
  <p>Thnaks in advance. </p>