Code against the Bitbucket API to automate simple tasks, embed Bitbucket data into your own site, build mobile or desktop apps, or even add custom UI add-ons into Bitbucket itself using the Connect framework.
This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.
- API version: 2.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.GoClientCodegen For more information, please visit https://support.atlassian.com/bitbucket-cloud/
Put the package under your project folder and add the following in import:
"./swagger"
All URIs are relative to https://api.bitbucket.org/2.0
Class | Method | HTTP request | Description |
---|---|---|---|
AddonApi | AddonDelete | Delete /addon | |
AddonApi | AddonLinkersGet | Get /addon/linkers | |
AddonApi | AddonLinkersLinkerKeyGet | Get /addon/linkers/{linker_key} | |
AddonApi | AddonLinkersLinkerKeyValuesDelete | Delete /addon/linkers/{linker_key}/values | |
AddonApi | AddonLinkersLinkerKeyValuesDelete_0 | Delete /addon/linkers/{linker_key}/values/ | |
AddonApi | AddonLinkersLinkerKeyValuesGet | Get /addon/linkers/{linker_key}/values | |
AddonApi | AddonLinkersLinkerKeyValuesGet_0 | Get /addon/linkers/{linker_key}/values/ | |
AddonApi | AddonLinkersLinkerKeyValuesPost | Post /addon/linkers/{linker_key}/values | |
AddonApi | AddonLinkersLinkerKeyValuesPut | Put /addon/linkers/{linker_key}/values | |
AddonApi | AddonPut | Put /addon | |
AddonApi | AddonUsersTargetUserEventsEventKeyPost | Post /addon/users/{target_user}/events/{event_key} | |
BranchrestrictionsApi | RepositoriesUsernameRepoSlugBranchRestrictionsGet | Get /repositories/{username}/{repo_slug}/branch-restrictions | |
BranchrestrictionsApi | RepositoriesUsernameRepoSlugBranchRestrictionsIdDelete | Delete /repositories/{username}/{repo_slug}/branch-restrictions/{id} | |
BranchrestrictionsApi | RepositoriesUsernameRepoSlugBranchRestrictionsIdGet | Get /repositories/{username}/{repo_slug}/branch-restrictions/{id} | |
BranchrestrictionsApi | RepositoriesUsernameRepoSlugBranchRestrictionsIdPut | Put /repositories/{username}/{repo_slug}/branch-restrictions/{id} | |
BranchrestrictionsApi | RepositoriesUsernameRepoSlugBranchRestrictionsPost | Post /repositories/{username}/{repo_slug}/branch-restrictions | |
CommitsApi | RepositoriesUsernameRepoSlugCommitNodeApproveDelete | Delete /repositories/{username}/{repo_slug}/commit/{node}/approve | |
CommitsApi | RepositoriesUsernameRepoSlugCommitNodeApprovePost | Post /repositories/{username}/{repo_slug}/commit/{node}/approve | |
CommitsApi | RepositoriesUsernameRepoSlugCommitNodeCommentsCommentIdGet | Get /repositories/{username}/{repo_slug}/commit/{node}/comments/{comment_id} | |
CommitsApi | RepositoriesUsernameRepoSlugCommitNodeCommentsGet | Get /repositories/{username}/{repo_slug}/commit/{node}/comments | |
CommitsApi | RepositoriesUsernameRepoSlugCommitNodeCommentsPost | Post /repositories/{username}/{repo_slug}/commit/{node}/comments | |
CommitsApi | RepositoriesUsernameRepoSlugCommitNodeGet | Get /repositories/{username}/{repo_slug}/commit/{node} | |
CommitsApi | RepositoriesUsernameRepoSlugCommitsGet | Get /repositories/{username}/{repo_slug}/commits | |
CommitsApi | RepositoriesUsernameRepoSlugCommitsPost | Post /repositories/{username}/{repo_slug}/commits | |
CommitsApi | RepositoriesUsernameRepoSlugCommitsRevisionGet | Get /repositories/{username}/{repo_slug}/commits/{revision} | |
CommitsApi | RepositoriesUsernameRepoSlugCommitsRevisionPost | Post /repositories/{username}/{repo_slug}/commits/{revision} | |
CommitsApi | RepositoriesUsernameRepoSlugDiffSpecGet | Get /repositories/{username}/{repo_slug}/diff/{spec} | |
CommitsApi | RepositoriesUsernameRepoSlugPatchSpecGet | Get /repositories/{username}/{repo_slug}/patch/{spec} | |
CommitstatusesApi | RepositoriesUsernameRepoSlugCommitNodeStatusesBuildKeyGet | Get /repositories/{username}/{repo_slug}/commit/{node}/statuses/build/{key} | |
CommitstatusesApi | RepositoriesUsernameRepoSlugCommitNodeStatusesBuildKeyPut | Put /repositories/{username}/{repo_slug}/commit/{node}/statuses/build/{key} | |
CommitstatusesApi | RepositoriesUsernameRepoSlugCommitNodeStatusesBuildPost | Post /repositories/{username}/{repo_slug}/commit/{node}/statuses/build | |
CommitstatusesApi | RepositoriesUsernameRepoSlugCommitNodeStatusesGet | Get /repositories/{username}/{repo_slug}/commit/{node}/statuses | |
CommitstatusesApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdStatusesGet | Get /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/statuses | |
DefaultApi | RepositoriesUsernameRepoSlugDiffstatSpecGet | Get /repositories/{username}/{repo_slug}/diffstat/{spec} | |
DefaultApi | RepositoriesUsernameRepoSlugIssuesExportPost | Post /repositories/{username}/{repo_slug}/issues/export | |
DefaultApi | RepositoriesUsernameRepoSlugIssuesExportRepoNameIssuesTaskIdZipGet | Get /repositories/{username}/{repo_slug}/issues/export/{repo_name}-issues-{task_id}.zip | |
DefaultApi | RepositoriesUsernameRepoSlugIssuesImportGet | Get /repositories/{username}/{repo_slug}/issues/import | |
DefaultApi | RepositoriesUsernameRepoSlugIssuesImportPost | Post /repositories/{username}/{repo_slug}/issues/import | |
DefaultApi | RepositoriesUsernameRepoSlugPropertiesAppKeyPropertyNameDelete | Delete /repositories/{username}/{repo_slug}/properties/{app_key}/{property_name} | |
DefaultApi | RepositoriesUsernameRepoSlugPropertiesAppKeyPropertyNameGet | Get /repositories/{username}/{repo_slug}/properties/{app_key}/{property_name} | |
DefaultApi | RepositoriesUsernameRepoSlugPropertiesAppKeyPropertyNamePut | Put /repositories/{username}/{repo_slug}/properties/{app_key}/{property_name} | |
DefaultApi | TeamsUsernamePermissionsGet | Get /teams/{username}/permissions | |
DefaultApi | TeamsUsernamePermissionsRepositoriesGet | Get /teams/{username}/permissions/repositories | |
DefaultApi | UserPermissionsTeamsGet | Get /user/permissions/teams | |
DeployApi | RepositoriesUsernameRepoSlugDeployKeysGet | Get /repositories/{username}/{repo_slug}/deploy-keys | |
DeployApi | RepositoriesUsernameRepoSlugDeployKeysKeyIdDelete | Delete /repositories/{username}/{repo_slug}/deploy-keys/{key_id} | |
DeployApi | RepositoriesUsernameRepoSlugDeployKeysKeyIdGet | Get /repositories/{username}/{repo_slug}/deploy-keys/{key_id} | |
DeployApi | RepositoriesUsernameRepoSlugDeployKeysKeyIdPut | Put /repositories/{username}/{repo_slug}/deploy-keys/{key_id} | |
DeployApi | RepositoriesUsernameRepoSlugDeployKeysPost | Post /repositories/{username}/{repo_slug}/deploy-keys | |
DeploymentsApi | GetDeploymentForRepository | Get /repositories/{username}/{repo_slug}/deployments/{deployment_uuid} | |
DeploymentsApi | GetDeploymentsForRepository | Get /repositories/{username}/{repo_slug}/deployments/ | |
DeploymentsApi | GetEnvironmentForRepository | Get /repositories/{username}/{repo_slug}/environments/{environment_uuid} | |
DeploymentsApi | GetEnvironmentsForRepository | Get /repositories/{username}/{repo_slug}/environments/ | |
DeploymentsApi | UpdateEnvironmentForRepository | Post /repositories/{username}/{repo_slug}/environments/{environment_uuid}/changes/ | |
DownloadsApi | RepositoriesUsernameRepoSlugDownloadsFilenameDelete | Delete /repositories/{username}/{repo_slug}/downloads/{filename} | |
DownloadsApi | RepositoriesUsernameRepoSlugDownloadsFilenameGet | Get /repositories/{username}/{repo_slug}/downloads/{filename} | |
DownloadsApi | RepositoriesUsernameRepoSlugDownloadsGet | Get /repositories/{username}/{repo_slug}/downloads | |
DownloadsApi | RepositoriesUsernameRepoSlugDownloadsPost | Post /repositories/{username}/{repo_slug}/downloads | |
IssueTrackerApi | RepositoriesUsernameRepoSlugComponentsComponentIdGet | Get /repositories/{username}/{repo_slug}/components/{component_id} | |
IssueTrackerApi | RepositoriesUsernameRepoSlugComponentsGet | Get /repositories/{username}/{repo_slug}/components | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesGet | Get /repositories/{username}/{repo_slug}/issues | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdAttachmentsGet | Get /repositories/{username}/{repo_slug}/issues/{issue_id}/attachments | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdAttachmentsPathDelete | Delete /repositories/{username}/{repo_slug}/issues/{issue_id}/attachments/{path} | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdAttachmentsPathGet | Get /repositories/{username}/{repo_slug}/issues/{issue_id}/attachments/{path} | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdAttachmentsPost | Post /repositories/{username}/{repo_slug}/issues/{issue_id}/attachments | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdChangesChangeIdGet | Get /repositories/{username}/{repo_slug}/issues/{issue_id}/changes/{change_id} | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdChangesGet | Get /repositories/{username}/{repo_slug}/issues/{issue_id}/changes | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdChangesPost | Post /repositories/{username}/{repo_slug}/issues/{issue_id}/changes | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdCommentsCommentIdDelete | Delete /repositories/{username}/{repo_slug}/issues/{issue_id}/comments/{comment_id} | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdCommentsCommentIdGet | Get /repositories/{username}/{repo_slug}/issues/{issue_id}/comments/{comment_id} | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdCommentsCommentIdPut | Put /repositories/{username}/{repo_slug}/issues/{issue_id}/comments/{comment_id} | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdCommentsGet | Get /repositories/{username}/{repo_slug}/issues/{issue_id}/comments | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdCommentsPost | Post /repositories/{username}/{repo_slug}/issues/{issue_id}/comments | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdDelete | Delete /repositories/{username}/{repo_slug}/issues/{issue_id} | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdGet | Get /repositories/{username}/{repo_slug}/issues/{issue_id} | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdPut | Put /repositories/{username}/{repo_slug}/issues/{issue_id} | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdVoteDelete | Delete /repositories/{username}/{repo_slug}/issues/{issue_id}/vote | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdVoteGet | Get /repositories/{username}/{repo_slug}/issues/{issue_id}/vote | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdVotePut | Put /repositories/{username}/{repo_slug}/issues/{issue_id}/vote | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdWatchDelete | Delete /repositories/{username}/{repo_slug}/issues/{issue_id}/watch | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdWatchGet | Get /repositories/{username}/{repo_slug}/issues/{issue_id}/watch | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesIssueIdWatchPut | Put /repositories/{username}/{repo_slug}/issues/{issue_id}/watch | |
IssueTrackerApi | RepositoriesUsernameRepoSlugIssuesPost | Post /repositories/{username}/{repo_slug}/issues | |
IssueTrackerApi | RepositoriesUsernameRepoSlugMilestonesGet | Get /repositories/{username}/{repo_slug}/milestones | |
IssueTrackerApi | RepositoriesUsernameRepoSlugMilestonesMilestoneIdGet | Get /repositories/{username}/{repo_slug}/milestones/{milestone_id} | |
IssueTrackerApi | RepositoriesUsernameRepoSlugVersionsGet | Get /repositories/{username}/{repo_slug}/versions | |
IssueTrackerApi | RepositoriesUsernameRepoSlugVersionsVersionIdGet | Get /repositories/{username}/{repo_slug}/versions/{version_id} | |
PipelinesApi | CreatePipelineForRepository | Post /repositories/{username}/{repo_slug}/pipelines/ | |
PipelinesApi | CreatePipelineVariableForTeam | Post /teams/{username}/pipelines_config/variables/ | |
PipelinesApi | CreatePipelineVariableForUser | Post /users/{username}/pipelines_config/variables/ | |
PipelinesApi | CreateRepositoryPipelineKnownHost | Post /repositories/{username}/{repo_slug}/pipelines_config/ssh/known_hosts/ | |
PipelinesApi | CreateRepositoryPipelineSchedule | Post /repositories/{username}/{repo_slug}/pipelines_config/schedules/ | |
PipelinesApi | CreateRepositoryPipelineVariable | Post /repositories/{username}/{repo_slug}/pipelines_config/variables/ | |
PipelinesApi | DeletePipelineVariableForTeam | Delete /teams/{username}/pipelines_config/variables/{variable_uuid} | |
PipelinesApi | DeletePipelineVariableForUser | Delete /users/{username}/pipelines_config/variables/{variable_uuid} | |
PipelinesApi | DeleteRepositoryPipelineKeyPair | Delete /repositories/{username}/{repo_slug}/pipelines_config/ssh/key_pair | |
PipelinesApi | DeleteRepositoryPipelineKnownHost | Delete /repositories/{username}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid} | |
PipelinesApi | DeleteRepositoryPipelineSchedule | Delete /repositories/{username}/{repo_slug}/pipelines_config/schedules/{schedule_uuid} | |
PipelinesApi | DeleteRepositoryPipelineVariable | Delete /repositories/{username}/{repo_slug}/pipelines_config/variables/{variable_uuid} | |
PipelinesApi | GetPipelineForRepository | Get /repositories/{username}/{repo_slug}/pipelines/{pipeline_uuid} | |
PipelinesApi | GetPipelineStepForRepository | Get /repositories/{username}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid} | |
PipelinesApi | GetPipelineStepLogForRepository | Get /repositories/{username}/{repo_slug}/pipelines/{pipeline_uuid}/steps/{step_uuid}/log | |
PipelinesApi | GetPipelineStepsForRepository | Get /repositories/{username}/{repo_slug}/pipelines/{pipeline_uuid}/steps/ | |
PipelinesApi | GetPipelineVariableForTeam | Get /teams/{username}/pipelines_config/variables/{variable_uuid} | |
PipelinesApi | GetPipelineVariableForUser | Get /users/{username}/pipelines_config/variables/{variable_uuid} | |
PipelinesApi | GetPipelineVariablesForTeam | Get /teams/{username}/pipelines_config/variables/ | |
PipelinesApi | GetPipelineVariablesForUser | Get /users/{username}/pipelines_config/variables/ | |
PipelinesApi | GetPipelinesForRepository | Get /repositories/{username}/{repo_slug}/pipelines/ | |
PipelinesApi | GetRepositoryPipelineConfig | Get /repositories/{username}/{repo_slug}/pipelines_config | |
PipelinesApi | GetRepositoryPipelineKnownHost | Get /repositories/{username}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid} | |
PipelinesApi | GetRepositoryPipelineKnownHosts | Get /repositories/{username}/{repo_slug}/pipelines_config/ssh/known_hosts/ | |
PipelinesApi | GetRepositoryPipelineSchedule | Get /repositories/{username}/{repo_slug}/pipelines_config/schedules/{schedule_uuid} | |
PipelinesApi | GetRepositoryPipelineScheduleExecutions | Get /repositories/{username}/{repo_slug}/pipelines_config/schedules/{schedule_uuid}/executions/ | |
PipelinesApi | GetRepositoryPipelineSchedules | Get /repositories/{username}/{repo_slug}/pipelines_config/schedules/ | |
PipelinesApi | GetRepositoryPipelineSshKeyPair | Get /repositories/{username}/{repo_slug}/pipelines_config/ssh/key_pair | |
PipelinesApi | GetRepositoryPipelineVariable | Get /repositories/{username}/{repo_slug}/pipelines_config/variables/{variable_uuid} | |
PipelinesApi | GetRepositoryPipelineVariables | Get /repositories/{username}/{repo_slug}/pipelines_config/variables/ | |
PipelinesApi | StopPipeline | Post /repositories/{username}/{repo_slug}/pipelines/{pipeline_uuid}/stopPipeline | |
PipelinesApi | UpdatePipelineVariableForTeam | Put /teams/{username}/pipelines_config/variables/{variable_uuid} | |
PipelinesApi | UpdatePipelineVariableForUser | Put /users/{username}/pipelines_config/variables/{variable_uuid} | |
PipelinesApi | UpdateRepositoryBuildNumber | Put /repositories/{username}/{repo_slug}/pipelines_config/build_number | |
PipelinesApi | UpdateRepositoryPipelineConfig | Put /repositories/{username}/{repo_slug}/pipelines_config | |
PipelinesApi | UpdateRepositoryPipelineKeyPair | Put /repositories/{username}/{repo_slug}/pipelines_config/ssh/key_pair | |
PipelinesApi | UpdateRepositoryPipelineKnownHost | Put /repositories/{username}/{repo_slug}/pipelines_config/ssh/known_hosts/{known_host_uuid} | |
PipelinesApi | UpdateRepositoryPipelineSchedule | Put /repositories/{username}/{repo_slug}/pipelines_config/schedules/{schedule_uuid} | |
PipelinesApi | UpdateRepositoryPipelineVariable | Put /repositories/{username}/{repo_slug}/pipelines_config/variables/{variable_uuid} | |
ProjectsApi | TeamsUsernameProjectsGet | Get /teams/{username}/projects/ | |
ProjectsApi | TeamsUsernameProjectsPost | Post /teams/{username}/projects/ | |
ProjectsApi | TeamsUsernameProjectsProjectKeyDelete | Delete /teams/{username}/projects/{project_key} | |
ProjectsApi | TeamsUsernameProjectsProjectKeyGet | Get /teams/{username}/projects/{project_key} | |
ProjectsApi | TeamsUsernameProjectsProjectKeyPut | Put /teams/{username}/projects/{project_key} | |
PullrequestsApi | GetPullrequestsForCommit | Get /repositories/{username}/{repo_slug}/commit/{commit}/pullrequests | Returns a paginated list of all pull requests as part of which this commit was reviewed. |
PullrequestsApi | PullrequestsTargetUserGet | Get /pullrequests/{target_user} | |
PullrequestsApi | RepositoriesUsernameRepoSlugDefaultReviewersGet | Get /repositories/{username}/{repo_slug}/default-reviewers | |
PullrequestsApi | RepositoriesUsernameRepoSlugDefaultReviewersTargetUsernameDelete | Delete /repositories/{username}/{repo_slug}/default-reviewers/{target_username} | |
PullrequestsApi | RepositoriesUsernameRepoSlugDefaultReviewersTargetUsernameGet | Get /repositories/{username}/{repo_slug}/default-reviewers/{target_username} | |
PullrequestsApi | RepositoriesUsernameRepoSlugDefaultReviewersTargetUsernamePut | Put /repositories/{username}/{repo_slug}/default-reviewers/{target_username} | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsActivityGet | Get /repositories/{username}/{repo_slug}/pullrequests/activity | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsGet | Get /repositories/{username}/{repo_slug}/pullrequests | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPost | Post /repositories/{username}/{repo_slug}/pullrequests | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdActivityGet | Get /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/activity | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdApproveDelete | Delete /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/approve | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdApprovePost | Post /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/approve | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdCommentsCommentIdDelete | Delete /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id} | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdCommentsCommentIdGet | Get /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id} | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdCommentsCommentIdPut | Put /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id} | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdCommentsGet | Get /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/comments | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdCommentsPost | Post /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/comments | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdCommitsGet | Get /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/commits | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdDeclinePost | Post /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/decline | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdDiffGet | Get /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/diff | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdDiffstatGet | Get /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/diffstat | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdGet | Get /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id} | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdMergePost | Post /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/merge | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdPatchGet | Get /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/patch | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdPut | Put /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id} | |
PullrequestsApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdStatusesGet | Get /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/statuses | |
RefsApi | RepositoriesUsernameRepoSlugRefsBranchesGet | Get /repositories/{username}/{repo_slug}/refs/branches | |
RefsApi | RepositoriesUsernameRepoSlugRefsBranchesNameDelete | Delete /repositories/{username}/{repo_slug}/refs/branches/{name} | |
RefsApi | RepositoriesUsernameRepoSlugRefsBranchesNameGet | Get /repositories/{username}/{repo_slug}/refs/branches/{name} | |
RefsApi | RepositoriesUsernameRepoSlugRefsBranchesPost | Post /repositories/{username}/{repo_slug}/refs/branches | |
RefsApi | RepositoriesUsernameRepoSlugRefsGet | Get /repositories/{username}/{repo_slug}/refs | |
RefsApi | RepositoriesUsernameRepoSlugRefsTagsGet | Get /repositories/{username}/{repo_slug}/refs/tags | |
RefsApi | RepositoriesUsernameRepoSlugRefsTagsNameDelete | Delete /repositories/{username}/{repo_slug}/refs/tags/{name} | |
RefsApi | RepositoriesUsernameRepoSlugRefsTagsNameGet | Get /repositories/{username}/{repo_slug}/refs/tags/{name} | |
RefsApi | RepositoriesUsernameRepoSlugRefsTagsPost | Post /repositories/{username}/{repo_slug}/refs/tags | |
RepositoriesApi | RepositoriesGet | Get /repositories | |
RepositoriesApi | RepositoriesUsernameGet | Get /repositories/{username} | |
RepositoriesApi | RepositoriesUsernameRepoSlugCommitNodeStatusesBuildKeyGet | Get /repositories/{username}/{repo_slug}/commit/{node}/statuses/build/{key} | |
RepositoriesApi | RepositoriesUsernameRepoSlugCommitNodeStatusesBuildKeyPut | Put /repositories/{username}/{repo_slug}/commit/{node}/statuses/build/{key} | |
RepositoriesApi | RepositoriesUsernameRepoSlugCommitNodeStatusesBuildPost | Post /repositories/{username}/{repo_slug}/commit/{node}/statuses/build | |
RepositoriesApi | RepositoriesUsernameRepoSlugCommitNodeStatusesGet | Get /repositories/{username}/{repo_slug}/commit/{node}/statuses | |
RepositoriesApi | RepositoriesUsernameRepoSlugDelete | Delete /repositories/{username}/{repo_slug} | |
RepositoriesApi | RepositoriesUsernameRepoSlugFilehistoryNodePathGet | Get /repositories/{username}/{repo_slug}/filehistory/{node}/{path} | |
RepositoriesApi | RepositoriesUsernameRepoSlugForksGet | Get /repositories/{username}/{repo_slug}/forks | |
RepositoriesApi | RepositoriesUsernameRepoSlugForksPost | Post /repositories/{username}/{repo_slug}/forks | |
RepositoriesApi | RepositoriesUsernameRepoSlugGet | Get /repositories/{username}/{repo_slug} | |
RepositoriesApi | RepositoriesUsernameRepoSlugHooksGet | Get /repositories/{username}/{repo_slug}/hooks | |
RepositoriesApi | RepositoriesUsernameRepoSlugHooksPost | Post /repositories/{username}/{repo_slug}/hooks | |
RepositoriesApi | RepositoriesUsernameRepoSlugHooksUidDelete | Delete /repositories/{username}/{repo_slug}/hooks/{uid} | |
RepositoriesApi | RepositoriesUsernameRepoSlugHooksUidGet | Get /repositories/{username}/{repo_slug}/hooks/{uid} | |
RepositoriesApi | RepositoriesUsernameRepoSlugHooksUidPut | Put /repositories/{username}/{repo_slug}/hooks/{uid} | |
RepositoriesApi | RepositoriesUsernameRepoSlugPost | Post /repositories/{username}/{repo_slug} | |
RepositoriesApi | RepositoriesUsernameRepoSlugPullrequestsPullRequestIdStatusesGet | Get /repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/statuses | |
RepositoriesApi | RepositoriesUsernameRepoSlugPut | Put /repositories/{username}/{repo_slug} | |
RepositoriesApi | RepositoriesUsernameRepoSlugSrcGet | Get /repositories/{username}/{repo_slug}/src | |
RepositoriesApi | RepositoriesUsernameRepoSlugSrcNodePathGet | Get /repositories/{username}/{repo_slug}/src/{node}/{path} | |
RepositoriesApi | RepositoriesUsernameRepoSlugSrcPost | Post /repositories/{username}/{repo_slug}/src | |
RepositoriesApi | RepositoriesUsernameRepoSlugWatchersGet | Get /repositories/{username}/{repo_slug}/watchers | |
RepositoriesApi | UserPermissionsRepositoriesGet | Get /user/permissions/repositories | |
SearchApi | SearchAccount | Get /teams/{username}/search/code | Search for code in the repositories of the specified team |
SearchApi | SearchAccount_0 | Get /users/{username}/search/code | Search for code in the repositories of the specified user |
SnippetApi | SnippetsUsernameEncodedIdFilesPathGet | Get /snippets/{username}/{encoded_id}/files/{path} | |
SnippetsApi | SnippetsGet | Get /snippets | |
SnippetsApi | SnippetsPost | Post /snippets | |
SnippetsApi | SnippetsUsernameEncodedIdCommentsCommentIdDelete | Delete /snippets/{username}/{encoded_id}/comments/{comment_id} | |
SnippetsApi | SnippetsUsernameEncodedIdCommentsCommentIdGet | Get /snippets/{username}/{encoded_id}/comments/{comment_id} | |
SnippetsApi | SnippetsUsernameEncodedIdCommentsCommentIdPut | Put /snippets/{username}/{encoded_id}/comments/{comment_id} | |
SnippetsApi | SnippetsUsernameEncodedIdCommentsGet | Get /snippets/{username}/{encoded_id}/comments | |
SnippetsApi | SnippetsUsernameEncodedIdCommentsPost | Post /snippets/{username}/{encoded_id}/comments | |
SnippetsApi | SnippetsUsernameEncodedIdCommitsGet | Get /snippets/{username}/{encoded_id}/commits | |
SnippetsApi | SnippetsUsernameEncodedIdCommitsRevisionGet | Get /snippets/{username}/{encoded_id}/commits/{revision} | |
SnippetsApi | SnippetsUsernameEncodedIdDelete | Delete /snippets/{username}/{encoded_id} | |
SnippetsApi | SnippetsUsernameEncodedIdGet | Get /snippets/{username}/{encoded_id} | |
SnippetsApi | SnippetsUsernameEncodedIdNodeIdDelete | Delete /snippets/{username}/{encoded_id}/{node_id} | |
SnippetsApi | SnippetsUsernameEncodedIdNodeIdFilesPathGet | Get /snippets/{username}/{encoded_id}/{node_id}/files/{path} | |
SnippetsApi | SnippetsUsernameEncodedIdNodeIdGet | Get /snippets/{username}/{encoded_id}/{node_id} | |
SnippetsApi | SnippetsUsernameEncodedIdNodeIdPut | Put /snippets/{username}/{encoded_id}/{node_id} | |
SnippetsApi | SnippetsUsernameEncodedIdPut | Put /snippets/{username}/{encoded_id} | |
SnippetsApi | SnippetsUsernameEncodedIdRevisionDiffGet | Get /snippets/{username}/{encoded_id}/{revision}/diff | |
SnippetsApi | SnippetsUsernameEncodedIdRevisionPatchGet | Get /snippets/{username}/{encoded_id}/{revision}/patch | |
SnippetsApi | SnippetsUsernameEncodedIdWatchDelete | Delete /snippets/{username}/{encoded_id}/watch | |
SnippetsApi | SnippetsUsernameEncodedIdWatchGet | Get /snippets/{username}/{encoded_id}/watch | |
SnippetsApi | SnippetsUsernameEncodedIdWatchPut | Put /snippets/{username}/{encoded_id}/watch | |
SnippetsApi | SnippetsUsernameEncodedIdWatchersGet | Get /snippets/{username}/{encoded_id}/watchers | |
SnippetsApi | SnippetsUsernameGet | Get /snippets/{username} | |
SnippetsApi | SnippetsUsernamePost | Post /snippets/{username} | |
SourceApi | RepositoriesUsernameRepoSlugFilehistoryNodePathGet | Get /repositories/{username}/{repo_slug}/filehistory/{node}/{path} | |
SourceApi | RepositoriesUsernameRepoSlugSrcGet | Get /repositories/{username}/{repo_slug}/src | |
SourceApi | RepositoriesUsernameRepoSlugSrcNodePathGet | Get /repositories/{username}/{repo_slug}/src/{node}/{path} | |
SourceApi | RepositoriesUsernameRepoSlugSrcPost | Post /repositories/{username}/{repo_slug}/src | |
SshApi | UsersUsernameSshKeysDelete | Delete /users/{username}/ssh-keys/ | |
SshApi | UsersUsernameSshKeysGet | Get /users/{username}/ssh-keys/ | |
SshApi | UsersUsernameSshKeysGet_0 | Get /users/{username}/ssh-keys | |
SshApi | UsersUsernameSshKeysPost | Post /users/{username}/ssh-keys | |
SshApi | UsersUsernameSshKeysPut | Put /users/{username}/ssh-keys/ | |
TeamsApi | TeamsGet | Get /teams | |
TeamsApi | TeamsUsernameFollowersGet | Get /teams/{username}/followers | |
TeamsApi | TeamsUsernameFollowingGet | Get /teams/{username}/following | |
TeamsApi | TeamsUsernameGet | Get /teams/{username} | |
TeamsApi | TeamsUsernameHooksGet | Get /teams/{username}/hooks | |
TeamsApi | TeamsUsernameHooksPost | Post /teams/{username}/hooks | |
TeamsApi | TeamsUsernameHooksUidDelete | Delete /teams/{username}/hooks/{uid} | |
TeamsApi | TeamsUsernameHooksUidGet | Get /teams/{username}/hooks/{uid} | |
TeamsApi | TeamsUsernameHooksUidPut | Put /teams/{username}/hooks/{uid} | |
TeamsApi | TeamsUsernameMembersGet | Get /teams/{username}/members | |
TeamsApi | TeamsUsernameRepositoriesGet | Get /teams/{username}/repositories | |
TeamsApi | UsersUsernameMembersGet | Get /users/{username}/members | |
TeamsApi | UsersUsernameRepositoriesGet | Get /users/{username}/repositories | |
UsersApi | TeamsUsernameRepositoriesGet | Get /teams/{username}/repositories | |
UsersApi | UserEmailsEmailGet | Get /user/emails/{email} | |
UsersApi | UserEmailsGet | Get /user/emails | |
UsersApi | UserGet | Get /user | |
UsersApi | UsersUsernameFollowersGet | Get /users/{username}/followers | |
UsersApi | UsersUsernameFollowingGet | Get /users/{username}/following | |
UsersApi | UsersUsernameGet | Get /users/{username} | |
UsersApi | UsersUsernameHooksGet | Get /users/{username}/hooks | |
UsersApi | UsersUsernameHooksPost | Post /users/{username}/hooks | |
UsersApi | UsersUsernameHooksUidDelete | Delete /users/{username}/hooks/{uid} | |
UsersApi | UsersUsernameHooksUidGet | Get /users/{username}/hooks/{uid} | |
UsersApi | UsersUsernameHooksUidPut | Put /users/{username}/hooks/{uid} | |
UsersApi | UsersUsernameRepositoriesGet | Get /users/{username}/repositories | |
WebhooksApi | HookEventsGet | Get /hook_events | |
WebhooksApi | HookEventsSubjectTypeGet | Get /hook_events/{subject_type} | |
WebhooksApi | RepositoriesUsernameRepoSlugHooksGet | Get /repositories/{username}/{repo_slug}/hooks | |
WebhooksApi | RepositoriesUsernameRepoSlugHooksPost | Post /repositories/{username}/{repo_slug}/hooks | |
WebhooksApi | RepositoriesUsernameRepoSlugHooksUidDelete | Delete /repositories/{username}/{repo_slug}/hooks/{uid} | |
WebhooksApi | RepositoriesUsernameRepoSlugHooksUidGet | Get /repositories/{username}/{repo_slug}/hooks/{uid} | |
WebhooksApi | RepositoriesUsernameRepoSlugHooksUidPut | Put /repositories/{username}/{repo_slug}/hooks/{uid} | |
WebhooksApi | TeamsUsernameHooksGet | Get /teams/{username}/hooks | |
WebhooksApi | TeamsUsernameHooksPost | Post /teams/{username}/hooks | |
WebhooksApi | TeamsUsernameHooksUidDelete | Delete /teams/{username}/hooks/{uid} | |
WebhooksApi | TeamsUsernameHooksUidGet | Get /teams/{username}/hooks/{uid} | |
WebhooksApi | TeamsUsernameHooksUidPut | Put /teams/{username}/hooks/{uid} | |
WebhooksApi | UsersUsernameHooksGet | Get /users/{username}/hooks | |
WebhooksApi | UsersUsernameHooksPost | Post /users/{username}/hooks | |
WebhooksApi | UsersUsernameHooksUidDelete | Delete /users/{username}/hooks/{uid} | |
WebhooksApi | UsersUsernameHooksUidGet | Get /users/{username}/hooks/{uid} | |
WebhooksApi | UsersUsernameHooksUidPut | Put /users/{username}/hooks/{uid} |
- AccountLinks
- CommentInline
- CommentLinks
- CommitFile
- CommitstatusLinks
- Diffstat
- ErrorError
- GroupLinks
- HookEvent
- IssueChange
- IssueChangeChanges
- IssueChangeChangesAssignee
- IssueChangeLinks
- IssueContent
- IssueJobStatus
- IssueLinks
- ModelError
- Object
- Page
- PaginatedBranches
- PaginatedBranchrestrictions
- PaginatedCommitComments
- PaginatedCommitstatuses
- PaginatedComponents
- PaginatedDeployKeys
- PaginatedDeployments
- PaginatedDiffstats
- PaginatedEnvironments
- PaginatedFiles
- PaginatedHookEvents
- PaginatedIssueAttachments
- PaginatedIssueComments
- PaginatedIssues
- PaginatedLogEntries
- PaginatedMilestones
- PaginatedPipelineKnownHosts
- PaginatedPipelineScheduleExecutions
- PaginatedPipelineSchedules
- PaginatedPipelineSteps
- PaginatedPipelineVariables
- PaginatedPipelines
- PaginatedProjects
- PaginatedPullrequestComments
- PaginatedPullrequests
- PaginatedRefs
- PaginatedRepositories
- PaginatedRepositoryPermissions
- PaginatedSnippetComments
- PaginatedSnippetCommit
- PaginatedSnippets
- PaginatedSshUserKeys
- PaginatedTags
- PaginatedTeamPermissions
- PaginatedTeams
- PaginatedTreeentries
- PaginatedUsers
- PaginatedVersions
- PaginatedWebhookSubscriptions
- PipelineCommand
- PipelineImage
- PipelineLogRange
- ProjectLinks
- PullrequestEndpoint
- PullrequestEndpointBranch
- PullrequestLinks
- PullrequestMergeCommit
- PullrequestMergeParameters
- PullrequestRendered
- Ref
- RefLinks
- RepositoryLinks
- RepositoryPermission
- SearchCodeSearchResult
- SearchContentMatch
- SearchLine
- SearchResultPage
- SearchSegment
- SnippetCommitLinks
- SubjectTypes
- SubjectTypesRepository
- SubjectTypesRepositoryEvents
- TeamPermission
- Treeentry
- VersionLinks
- Account
- Author
- BaseCommit
- Branch
- Branchrestriction
- Comment
- Commitstatus
- Component
- DeployKey
- Deployment
- DeploymentEnvironment
- DeploymentRelease
- DeploymentState
- DeploymentStateCompletedStatus
- Group
- Issue
- IssueAttachment
- Milestone
- Participant
- Pipeline
- PipelineBuildNumber
- PipelineError
- PipelineKnownHost
- PipelineSchedule
- PipelineScheduleExecution
- PipelineSelector
- PipelineSshKeyPair
- PipelineSshPublicKey
- PipelineState
- PipelineStateCompletedResult
- PipelineStateInProgressStage
- PipelineStep
- PipelineStepError
- PipelineStepState
- PipelineStepStateCompletedResult
- PipelineTarget
- PipelineTrigger
- PipelineVariable
- PipelinesConfig
- Project
- Pullrequest
- Repository
- Snippet
- SnippetComment
- SshKey
- Tag
- Version
- WebhookSubscription
- Commit
- CommitComment
- DeploymentStateCompleted
- DeploymentStateCompletedStatusFailed
- DeploymentStateCompletedStatusStopped
- DeploymentStateCompletedStatusSuccessful
- DeploymentStateInProgress
- DeploymentStateUndeployed
- IssueComment
- PipelineCommitTarget
- PipelineRefTarget
- PipelineScheduleExecutionErrored
- PipelineScheduleExecutionExecuted
- PipelineStateCompleted
- PipelineStateCompletedError
- PipelineStateCompletedExpired
- PipelineStateCompletedFailed
- PipelineStateCompletedStopped
- PipelineStateCompletedSuccessful
- PipelineStateInProgress
- PipelineStateInProgressPaused
- PipelineStateInProgressRunning
- PipelineStatePending
- PipelineStepStateCompleted
- PipelineStepStateCompletedError
- PipelineStepStateCompletedExpired
- PipelineStepStateCompletedFailed
- PipelineStepStateCompletedNotRun
- PipelineStepStateCompletedStopped
- PipelineStepStateCompletedSuccessful
- PipelineStepStateInProgress
- PipelineStepStatePending
- PipelineStepStateReady
- PipelineTriggerManual
- PipelineTriggerPush
- PullrequestComment
- SnippetCommit
- SshAccountKey
- Team
- User
- Type: API key
Example
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
Key: "APIKEY",
Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)
- Type: HTTP basic authentication
Example
auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
UserName: "username",
Password: "password",
})
r, err := client.Service.Operation(auth, args)
- Type: OAuth
- Flow: accessCode
- Authorization URL: https://bitbucket.org/site/oauth2/authorize
- Scopes:
- wiki: Read and modify your repositories' wikis
- pullrequest:write: Read and modify your repositories and their pull requests
- pipeline:variable: Access your repositories' build pipelines and configure their variables
- project:write: Read and modify your team's project settings, and read and transfer repositories within your team's projects
- pipeline:write: Access and rerun your repositories' build pipelines
- snippet: Read your snippets
- repository:delete: Delete your repositories
- repository:write: Read and modify your repositories
- issue: Read your repositories' issues
- email: Read your account's primary email address
- repository: Read your repositories
- issue:write: Read and modify your repositories' issues
- webhook: Read and modify your repositories' webhooks
- pipeline: Access your repositories' build pipelines
- snippet:write: Read and modify your snippets
- account: Read your account information
- repository:admin: Administer your repositories
- pullrequest: Read your repositories and their pull requests
- project: Read your team's project settings and read repositories contained within your team's projects
- team: Read your team membership information
- team:write: Read and modify your team membership information
- account:write: Read and modify your account information
Example
auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)
Or via OAuth2 module to automatically refresh tokens and perform user authentication.
import "golang.org/x/oauth2"
/ .. Perform OAuth2 round trip request and obtain a token .. //
tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)