{"id":37027873,"url":"https://github.com/aliction/bitbucket-client","last_synced_at":"2026-01-14T03:19:09.536Z","repository":{"id":57716750,"uuid":"214046469","full_name":"Aliction/bitbucket-client","owner":"Aliction","description":"Java Client Implementation to Bitbucket Cloud REST API v2.0","archived":false,"fork":false,"pushed_at":"2020-10-02T10:58:23.000Z","size":78,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-11T19:39:20.801Z","etag":null,"topics":["aliction","api-client","bitbucket","bitbucket-api","bitbucket-api-v2","bitbucket-client","bitbucket-cloud","bitbucket-java-client","bitbucket-java-rest-client","bitbucket-v2","client","java","rest-client"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aliction.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-09T23:54:11.000Z","updated_at":"2020-10-02T07:46:44.000Z","dependencies_parsed_at":"2022-08-23T19:00:26.348Z","dependency_job_id":null,"html_url":"https://github.com/Aliction/bitbucket-client","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Aliction/bitbucket-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aliction%2Fbitbucket-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aliction%2Fbitbucket-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aliction%2Fbitbucket-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aliction%2Fbitbucket-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aliction","download_url":"https://codeload.github.com/Aliction/bitbucket-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aliction%2Fbitbucket-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aliction","api-client","bitbucket","bitbucket-api","bitbucket-api-v2","bitbucket-client","bitbucket-cloud","bitbucket-java-client","bitbucket-java-rest-client","bitbucket-v2","client","java","rest-client"],"created_at":"2026-01-14T03:19:08.828Z","updated_at":"2026-01-14T03:19:09.507Z","avatar_url":"https://github.com/Aliction.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitbucket Client\n\nThis repository is build to work as a Java rest client for bitbucket cloud APIs V2\n\n## Add dependency\n\n```\n      \u003cdependency\u003e\n        \u003cgroupId\u003ecom.aliction\u003c/groupId\u003e\n        \u003cartifactId\u003ebitbucket-client\u003c/artifactId\u003e\n        \u003cversion\u003e0.2.0\u003c/version\u003e\n      \u003c/dependency\u003e\n```\n\nCheck versions from maven central [Bitbucket-Client](https://mvnrepository.com/artifact/com.aliction/bitbucket-client)\n\n## Usage\nFirst you need to create an instance of `BitbucketV2API` class which expects 3 String input parameter:\n* hostURL: your bitbucket api server url\n* username: your bitbucket user name\n* token: bitbucket API token\n\n`BitbucketV2API bitbucket = new BitbucketV2API(\"https://api.bitbucket.org\", \"my-user\",\"9876234b92g3479cf2geiywrtg62834r\");`\n\nThis newly created bitbucket object will give you access to all the implemented APIs and their provided methods, for example:\n\n* To get list of all public repositories on bitbucket:\n\n`List\u003cBitbucketRepository\u003e userRepos = bitbucket.RepositoryAPI().getAllPublicRepositories();`\n\n* To get the user object of the currently logged user:\n\n`BitbucketUser user = bitbucket.UserAPI().getLoggedUser();`\n\n* To get list of teams the user has admin role to:\n\n`List\u003cBitbucketTeam\u003e teams = bitbucket.TeamAPI().getUserTeams(BitbucketRole.ADMIN);`\n\n## JavaDoc\n\nJavaDoc is coming soon [HERE](http://www.aliction.com/projects/bitbucket-client/javadoc)\n\n## Contribution\nThe library is published while still work in progress for adding more APIs and handling more functions, you're valuable contribution will help adding more features to the library, contribution can be and not limited to:\n* Opening issues towards the library for any missing functionality\n* Opening new PRs for adding new functionality that you want to make it available to the public and set you as a contributor to the library\n* Actively opening an issue if you found any bug or faced any issue while using the library\n* Opening new PRs for enhancing documentation, JavaDoc, or the README instructions\n* Opening issues for having any questions regarding the library usage\n* Any other contribution scenario that is not mentioned above\n\n\n## Troubleshooting\n\nSometimes if the your application has conflicting dependencies with other libraries, you may get exceptions while parsing json responses for `MessageBodyReader` Exceptions like below:\n\n```Exception in thread \"main\" org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: MessageBodyReader not found for media type=application/json;charset=utf-8, type=class com.aliction.gitproviders.bitbucket.objects.BitbucketCloudUser, genericType=class com.aliction.gitproviders.bitbucket.objects.BitbucketCloudUser.\n\tat org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom(ReaderInterceptorExecutor.java:208)\n\tat org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:132)\n\tat org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom(MessageBodyFactory.java:1071)\n\tat org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:850)\n\tat org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:784)\n\tat org.glassfish.jersey.client.ClientResponse.readEntity(ClientResponse.java:297)\n\tat org.glassfish.jersey.client.InboundJaxrsResponse$1.call(InboundJaxrsResponse.java:91)\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:292)\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:274)\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:205)\n\tat org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:365)\n\tat org.glassfish.jersey.client.InboundJaxrsResponse.runInScopeIfPossible(InboundJaxrsResponse.java:240)\n\tat org.glassfish.jersey.client.InboundJaxrsResponse.readEntity(InboundJaxrsResponse.java:88)\n    ...\n\n```\nAdding the json media library can help solve this issue:\n\n```   \n\t  \u003cdependency\u003e\n        \u003cgroupId\u003eorg.glassfish.jersey.media\u003c/groupId\u003e\n        \u003cartifactId\u003ejersey-media-json-jackson\u003c/artifactId\u003e\n        \u003cversion\u003e2.29.1\u003c/version\u003e\n      \u003c/dependency\u003e\n```\n\n\n## License\n\nThis library is released for [Aliction](http://www.aliction.com) under Apache 2 License.\nCheck [License](LICENSE.txt) for more information.\n\n## Additonal Resources\n\n[Bitbucket Deprecating API V1 Announcement](https://developer.atlassian.com/cloud/bitbucket/deprecation-notice-v1-apis/)\n\n[Announcing Bitbucket API V2](https://developer.atlassian.com/cloud/bitbucket/announcement-06-08-18-new-v2-apis/)\n\n[Bitbucket API V2 Reference](https://developer.atlassian.com/bitbucket/api/2/reference/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliction%2Fbitbucket-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliction%2Fbitbucket-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliction%2Fbitbucket-client/lists"}