title: Programmatically access Atlassian BitBucket from Java application
body: <p>From my Java application, I need to programmatically access Atlassian BitBucket account in order to be able to manage repositories/branches/commits/files.</p>
  
  <p>I have found the following Java API <a href="https://developer.atlassian.com/server/bitbucket/reference/java-api/" rel="nofollow noreferrer">https://developer.atlassian.com/server/bitbucket/reference/java-api/</a> but unable to find any example how it can be used /</p>
  
  <p>Could you please show a simple example how to programmatically login with user credentials into Atlassian BitBucket account and fetch for example a list of files inside of specific repository?</p>