{"id":19133723,"url":"https://github.com/chazmcgarvey/webservice-bitbucketserver","last_synced_at":"2025-07-31T00:40:27.026Z","repository":{"id":56839988,"uuid":"108220911","full_name":"chazmcgarvey/WebService-BitbucketServer","owner":"chazmcgarvey","description":"Perl bindings for Bitbucket Server REST APIs","archived":false,"fork":false,"pushed_at":"2018-08-04T19:19:03.000Z","size":165,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T17:47:03.899Z","etag":null,"topics":["api","bitbucket-server","perl"],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/WebService::BitbucketServer","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chazmcgarvey.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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":"2017-10-25T04:48:12.000Z","updated_at":"2018-09-03T15:56:04.000Z","dependencies_parsed_at":"2022-08-29T05:01:06.489Z","dependency_job_id":null,"html_url":"https://github.com/chazmcgarvey/WebService-BitbucketServer","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/chazmcgarvey/WebService-BitbucketServer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chazmcgarvey%2FWebService-BitbucketServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chazmcgarvey%2FWebService-BitbucketServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chazmcgarvey%2FWebService-BitbucketServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chazmcgarvey%2FWebService-BitbucketServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chazmcgarvey","download_url":"https://codeload.github.com/chazmcgarvey/WebService-BitbucketServer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chazmcgarvey%2FWebService-BitbucketServer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267967720,"owners_count":24173566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"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":["api","bitbucket-server","perl"],"created_at":"2024-11-09T06:23:36.799Z","updated_at":"2025-07-31T00:40:26.986Z","avatar_url":"https://github.com/chazmcgarvey.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nWebService::BitbucketServer - Bindings for Bitbucket Server REST APIs\n\n# VERSION\n\nversion 0.605\n\n# SYNOPSIS\n\n    my $api = WebService::BitbucketServer-\u003enew(\n        base_url    =\u003e 'https://stash.example.com/',\n        username    =\u003e 'bob',\n        password    =\u003e 'secret',\n    );\n\n    my $response = $api-\u003ecore-\u003eget_application_properties;\n    my $app_info = $response-\u003edata;\n    print \"Making API calls to: $app_info-\u003e{displayName} $app_info-\u003e{version}\\n\";\n\n    # Or use the low-level method (useful perhaps for new endpoints\n    # that are not packaged yet):\n\n    my $response = $api-\u003ecall(method =\u003e 'GET', url =\u003e 'api/1.0/application-properties');\n\n    # You can also use your own user agent:\n\n    my $api = WebService::BitbucketServer-\u003enew(\n        base_url    =\u003e 'https://stash.example.com/',\n        username    =\u003e 'bob',\n        password    =\u003e 'secret',\n        ua          =\u003e Mojo::UserAgent-\u003enew,\n    );\n\n    # If the user agent is nonblocking, responses are Futures:\n\n    my $future = $api-\u003ecore-\u003eget_application_properties;\n    $future-\u003eon_done(sub {\n        my $app_info = shift-\u003edata;\n        print \"Making API calls to: $app_info-\u003e{displayName} $app_info-\u003e{version}\\n\";\n    });\n\n# DESCRIPTION\n\nThis is the main module for the Bitbucket Server API bindings for Perl.\n\n# ATTRIBUTES\n\n## base\\_url\n\nGet the base URL of the Bitbucket Server host.\n\n## path\n\nGet the path from the base URL to the APIs. Defaults to \"rest\".\n\n## username\n\nGet the username of the user for authenticating.\n\n## password\n\nGet the password (or personal access token) of the user for authenticating.\n\n## ua\n\nGet the user agent used to make API calls.\n\nDefaults to [HTTP::Tiny](https://metacpan.org/pod/HTTP::Tiny).\n\nBecause this API module uses [HTTP::AnyUA](https://metacpan.org/pod/HTTP::AnyUA) under the hood, you can actually use any user agent\nsupported by HTTP::AnyUA.\n\n## any\\_ua\n\nGet the [HTTP::AnyUA](https://metacpan.org/pod/HTTP::AnyUA) object.\n\n## json\n\nGet the [JSON::XS](https://metacpan.org/pod/JSON::XS) (or compatible) object used for encoding and decoding documents.\n\n## no\\_security\\_warning\n\nGet whether or not a warning will be issued when an insecure action takes place (such as sending\ncredentials unencrypted). Defaults to false (i.e. will issue warning).\n\n# METHODS\n\n## new\n\n    $api = WebService::BitbucketServer-\u003enew(base_url =\u003e $base_url, %other_attributes);\n\nCreate a new API context object. Provide [\"ATTRIBUTES\"](#attributes) to customize.\n\n## core\n\nGet the [WebService::BitbucketServer::Core::V1](https://metacpan.org/pod/WebService::BitbucketServer::Core::V1) api.\n\n## access\\_tokens\n\nGet the [WebService::BitbucketServer::AccessTokens::V1](https://metacpan.org/pod/WebService::BitbucketServer::AccessTokens::V1) api.\n\n## audit\n\nGet the [WebService::BitbucketServer::Audit::V1](https://metacpan.org/pod/WebService::BitbucketServer::Audit::V1) api.\n\n## ref\\_restriction\n\nGet the [WebService::BitbucketServer::RefRestriction::V2](https://metacpan.org/pod/WebService::BitbucketServer::RefRestriction::V2) api.\n\n## branch\n\nGet the [WebService::BitbucketServer::Branch::V1](https://metacpan.org/pod/WebService::BitbucketServer::Branch::V1) api.\n\n## build\n\nGet the [WebService::BitbucketServer::Build::V1](https://metacpan.org/pod/WebService::BitbucketServer::Build::V1) api.\n\n## comment\\_likes\n\nGet the [WebService::BitbucketServer::CommentLikes::V1](https://metacpan.org/pod/WebService::BitbucketServer::CommentLikes::V1) api.\n\n## default\\_reviewers\n\nGet the [WebService::BitbucketServer::DefaultReviewers::V1](https://metacpan.org/pod/WebService::BitbucketServer::DefaultReviewers::V1) api.\n\n## git\n\nGet the [WebService::BitbucketServer::Git::V1](https://metacpan.org/pod/WebService::BitbucketServer::Git::V1) api.\n\n## gpg\n\nGet the [WebService::BitbucketServer::GPG::V1](https://metacpan.org/pod/WebService::BitbucketServer::GPG::V1) api.\n\n## jira\n\nGet the [WebService::BitbucketServer::JIRA::V1](https://metacpan.org/pod/WebService::BitbucketServer::JIRA::V1) api.\n\n## ssh\n\nGet the [WebService::BitbucketServer::SSH::V1](https://metacpan.org/pod/WebService::BitbucketServer::SSH::V1) api.\n\n## mirroring\\_upstream\n\nGet the [WebService::BitbucketServer::MirroringUpstream::V1](https://metacpan.org/pod/WebService::BitbucketServer::MirroringUpstream::V1) api.\n\n## repository\\_ref\\_sync\n\nGet the [WebService::BitbucketServer::RepositoryRefSync::V1](https://metacpan.org/pod/WebService::BitbucketServer::RepositoryRefSync::V1) api.\n\n## url\n\n    $url = $api-\u003eurl;\n\nGet the URL of the APIs (a combination of [\"base\\_url\"](#base_url) and [\"path\"](#path)).\n\n## call\n\n    $response = $api-\u003ecall(method =\u003e $method, url =\u003e $url, %options);\n\nMake a request to an API and get a [response](https://metacpan.org/pod/WebService::BitbucketServer::Response) (or [Future](https://metacpan.org/pod/Future)\nif the user agent is non-blocking).\n\n- url - the endpoint URL, relative to [\"url\"](#url)\n- method - the HTTP method\n- data - request data\n- data\\_type - type of request data, if any (defaults to \"application/json\")\n- raw - get a hashref response instead of a [WebService::BitbucketServer::Response](https://metacpan.org/pod/WebService::BitbucketServer::Response)\n\n## write\\_api\\_packages\n\n    WebService::BitbucketServer-\u003ewrite_api_packages;\n    WebService::BitbucketServer-\u003ewrite_api_packages(dir =\u003e 'lib');\n\nDownload API specifications from [https://developer.atlassian.com](https://developer.atlassian.com) and generate packages for\nthem, writing them to the specified directory. You normally don't need this because this module\nships with pre-built APIs, but you can use this to generate other APIs or versions if needed.\n\nRequires [XML::LibXML](https://metacpan.org/pod/XML::LibXML).\n\n# BUGS\n\nPlease report any bugs or feature requests on the bugtracker website\n[https://github.com/chazmcgarvey/WebService-BitbucketServer/issues](https://github.com/chazmcgarvey/WebService-BitbucketServer/issues)\n\nWhen submitting a bug or request, please include a test-file or a\npatch to an existing test-file that illustrates the bug or desired\nfeature.\n\n# AUTHOR\n\nCharles McGarvey \u003cchazmcgarvey@brokenzipper.com\u003e\n\n# CONTRIBUTOR\n\nCamspi \u003camarus18@hotmail.com\u003e\n\n# COPYRIGHT AND LICENSE\n\nThis software is copyright (c) 2018 by Charles McGarvey.\n\nThis is free software; you can redistribute it and/or modify it under\nthe same terms as the Perl 5 programming language system itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchazmcgarvey%2Fwebservice-bitbucketserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchazmcgarvey%2Fwebservice-bitbucketserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchazmcgarvey%2Fwebservice-bitbucketserver/lists"}