Viewing 0 reply threads
  • Author
    • #51

      Hi Folks,
      Can someone help me with sending text messages to Candidates just like we send email to them when we have their E-Mail ID ? I have an account with GupShup Enterprise which allows me to send texts messages over the Internet. Here is the PHP Code that they provided me ; howsoever anybody who can suggest me where do I implement this code :-

      $request =””; //initialise the request variable
      $param[method]= “sendMessage”;
      $param[send_to] = “919xxxxxxxxx”;
      $param[msg] = “Hello”;
      $param[userid] = “20000xxxxx”;
      $param[password] = “xxxxxxxx”;
      $param[v] = “1.1”;
      $param[msg_type] = “TEXT”; //Can be “FLASH”/”UNICODE_TEXT”/”BINARY”
      $param[auth_scheme] = “PLAIN”;
      //Have to URL encode the values
      foreach($param as $key=>$val) {
      $request.= $key.”=”.urlencode($val);
      //we have to urlencode the values
      $request.= “&”;
      //append the ampersand (&) sign after each
      parameter/value pair
      $request = substr($request, 0, strlen($request)-1);
      //remove final (&) sign from the request
      $url =
      $ch = curl_init($url);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
      $curl_scraped_page = curl_exec($ch);
      echo $curl_scraped_page;

Viewing 0 reply threads
  • You must be logged in to reply to this topic.