Skip to content

A simple go wrapper for the buffer rest api

License

Notifications You must be signed in to change notification settings

B-Stefan/go-buffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Buffer

Build Status Maintainability

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

Getting started

go get github.com/B-Stefan/go-buffer

Minimal example

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)
}

OAuth example

See example.go

Todos / Learnings

  • 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)

About

A simple go wrapper for the buffer rest api

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages