title: How to use WebRequest in c#
body: <p>I'am trying to use example api call in below link <strong>please check link</strong></p>
  
  <p><a href="http://sendloop.com/help/article/api-001/getting-started" rel="nofollow">http://sendloop.com/help/article/api-001/getting-started</a></p>
  
  <p>My account is "code5" so i tried 2 codes to get systemDate.</p>
  
  <p><strong>1. Code</strong></p>
  
  <pre><code>        var request = WebRequest.Create("http://code5.sendloop.com/api/v3/System.SystemDate.Get/json");
          request.ContentType = "application/json; charset=utf-8";
  
          string text;
          var response = (HttpWebResponse)request.GetResponse();
  
          using (var sr = new StreamReader(response.GetResponseStream()))
          {
              text = sr.ReadToEnd();
          }
  </code></pre>
  
  <p><strong>2.Code</strong></p>
  
  <pre><code>        HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create("http://code5.sendloop.com/api/v3/System.SystemDate.Get/json");
          httpWebRequest.Method = WebRequestMethods.Http.Get;
          httpWebRequest.Accept = "application/json";
  </code></pre>
  
  <p>But i don't know that i use correctly api by above codes ?</p>
  
  <p>When i use above codes i don't see any data or anything.</p>
  
  <p>How can i get and post api to Sendloop.And how can i use api by using WebRequest ?</p>
  
  <p>I will use api first time in .net so </p>
  
  <p><strong>any help will be appreciated.</strong></p>
  
  <p>Thanks.</p>