title: Accessing bitbucket api 403 Forbidden
body: <p>I am trying to develop a <code>c#</code> application which sends some <code>HttpWebRequest</code> to <strong>BitBucket</strong> API.<br>
  I am trying to access the below URL.    </p>
  
  <pre><code>https://bitbucket.org/api/1.0/repositories/MyUserName/MyRepo/changesets
  </code></pre>
  
  <p>C# Code  </p>
  
  <pre><code>string url = "https://bitbucket.org/api/1.0/repositories/MyUserName/MyRepo/changesets";
  HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
  request.Credentials = new NetworkCredential("MyUserName", "MyPassword");
  HttpWebResponse response = (HttpWebResponse)request.GetResponse();  
  </code></pre>
  
  <p>This gives me <code>403 error</code> which means credentials are correct but those credentials do not grant the caller permission to access the resource.  </p>
  
  <p>I don't know how to fix do this. I guess some configurations must do in bitbucket  but have no idea. I am the owner of this repository.  </p>
  
  <p>Please advice me.</p>