https://github.com/bcc-code/bmm-sdk-golang
Golang based implementation of the BMM API. Primarily for backend communication
https://github.com/bcc-code/bmm-sdk-golang
Last synced: 8 months ago
JSON representation
Golang based implementation of the BMM API. Primarily for backend communication
- Host: GitHub
- URL: https://github.com/bcc-code/bmm-sdk-golang
- Owner: bcc-code
- License: apache-2.0
- Created: 2025-02-19T12:28:09.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-16T23:01:06.000Z (about 1 year ago)
- Last Synced: 2025-07-28T04:49:38.944Z (11 months ago)
- Language: Go
- Size: 30.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Golang SDK for BMM
## Status
This SDK implements only the things needed by BCC Media at the moment.
It is primarily meant for use in the backend.
PRs expanding it are welcome.
## Usage
```go
import (
"github.com/bcc-code/bmm-sdk-golang"
)
func main() {
token, err:= bmm.Token(...)
if err != nil {
panic(err)
}
client := bmm.NewApiClient("http://bmm.base.url", token)
}
```
## Logging
Internally the SDK uses the [slog](https://pkg.go.dev/log/slog) package for logging.
A custom logger can be set using the `SetLogger(logger *slog.Logger)` method.