title: Access JIRA API with C# using AccessToken
body: <p>I have created AccessToken using <a href="https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+OAuth+authentication" rel="nofollow noreferrer">https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+OAuth+authentication</a> tutorial and could connected and get the data from jar file. I need to access it with c# app. I tried following code but it wasn't working.</p>
  
  <pre><code>var request = (HttpWebRequest)WebRequest.Create(apiUrl);  
  request.Method = "GET";
  request.Headers.Add("Authorization", "Bearer " + API_Access_Token);  
  var response = (HttpWebResponse)request.GetResponse();
  string html = string.Empty;
  using (StreamReader reader = new StreamReader(response.GetResponseStream()))
  {
      html = reader.ReadToEnd();
  }
  </code></pre>
  
  <p>Original question was <a href="https://stackoverflow.com/questions/28193366/access-jira-api-with-api-key-without-username-and-password">Access JIRA API with api key without username and password</a></p>