A simple wrapper to simplify and type the awesome buffer rest api
You encountered a bug or want to improve this module? Wow, great let's improve together! I'm happy about every issue or merge request! 👍
Known issue with oAuth see #4
go get github.com/B-Stefan/go-buffer
package main
import (
"fmt"
"github.com/b-stefan/go-buffer/api"
"log"
)
func main() {
service := api.NewClient(nil)
profiles, err := service.Profile.ListProfiles()
if err != nil{
fmt.Println("Got error...")
log.Fatal(err)
}
fmt.Println(profiles)
}
See example.go
- Fist go project - go is fun to learn! 👍
- This this API with real return values. Blocked by #4
- Enhance error handling according to docs
- Use composition for response / options types? (Learn how to use composition in go 😉)
- Test more unmarshal / marshal or create a integration test with real api (favored)
- Improve naming of methods - try to avoid
UpdateUpdate(options UpdateUpdateOptions)
signature (Breaking change with prev. version)