https://github.com/suhaibmujahid/go-bitbucket-server
Go library for accessing the Bitbucket Server API v1
https://github.com/suhaibmujahid/go-bitbucket-server
atlassian-bitbucket bitbucket bitbucket-api bitbucket-api-v1 bitbucket-server golang
Last synced: over 1 year ago
JSON representation
Go library for accessing the Bitbucket Server API v1
- Host: GitHub
- URL: https://github.com/suhaibmujahid/go-bitbucket-server
- Owner: suhaibmujahid
- License: mit
- Created: 2020-03-17T23:56:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-20T19:45:33.000Z (over 4 years ago)
- Last Synced: 2025-02-10T05:44:07.353Z (over 1 year ago)
- Topics: atlassian-bitbucket, bitbucket, bitbucket-api, bitbucket-api-v1, bitbucket-server, golang
- Language: Go
- Homepage:
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-bitbucket-server
[](https://github.com/suhaibmujahid/go-bitbucket-server/actions?query=workflow%3AGo)
go-bitbucket-server is a [Go](https://golang.orgs) client library for accessing the
[Bitbucket](https://www.atlassian.com/software/bitbucket) Server API v1.
> This client is under development , I started with endpoints that is important to me.
> The goal eventually is to cover the all endpoints.
> Pull requests are welcomed to implement missed endpoints or fix bugs.
The interface design of this package was inspired by [google/go-github](https://github.com/google/go-github)
and [andygrunwald/go-jira](https://github.com/andygrunwald/go-jira).
## Usage
```go
import "github.com/suhaibmujahid/go-bitbucket-server/bitbucket"
client := bitbucket.NewServerClient("http://localhost:7990/rest/api/1.0/", http.DefaultClient)
// retrieve the authenticated user
user, _, err := client.Users.Myself(context.Background())
```