title: How to send sms using Textlocal API?
body: <p>I am trying to implement the send message functionality using third party api. API-<a href="https://api.txtlocal.com/send/" rel="nofollow noreferrer">https://api.txtlocal.com/send/</a></p>
  
  <p>But when we are testing the implementation, we are facing an issue with error code 3 and giving a message as "invalid user details."</p>
  
  <p>C# code:</p>
  
  <pre><code>string UserId = "1234";
      String message = HttpUtility.UrlEncode("OTP");
      using (var wb = new WebClient())
      {
          byte[] response = wb.UploadValues("https://api.txtlocal.com/send/", new NameValueCollection()
              {
              {"username" , "&lt;TextLocal UserName&gt;"},
              {"hash" , "&lt;API has key&gt;"},
              {"sender" , "&lt;Unique sender ID&gt;"},
              {"numbers" , "&lt;receiver number&gt;"},
              {"message" , "Text message"}                
              });
          string result = System.Text.Encoding.UTF8.GetString(response);
          //return result;
  </code></pre>
  
  <p>Error Details:</p>
  
  <pre><code> {
      "errors": [{
          "code": 3,
          "message": "Invalid login details"
      }],
      "status": "failure"
  }
  </code></pre>
  
  <p>Even though I am passing valid credentials. </p>
  
  <p>Please assist me and let me know in case you require any more details.</p>
  
  <p>Thanks and appreciate your help in advance. </p>