modulepackage
0.1.3
Repository: https://github.com/bcc-code/bmm-sdk-golang.git
Documentation: pkg.go.dev
# 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
import (
"github.com/bccmedia/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 package for logging.
A custom logger can be set using the SetLogger(logger *slog.Logger)
method.
# Functions
No description provided by the author
NewApiClient creates a new BMM API client, using the provided token
It sets the language to norwegian.
NewToken creates a new token for M2M communication with BMM API.
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author