Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 675 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 675 Bytes

go-wavy

Go Reference

Golang client for interacting with wavy.fm.

Installation

go get github.com/OGKevin/go-wavy/wavy

Usage

import "github.com/OGKevin/go-wavy/wavy"

ctx, cancel := context.WithCancel(context.Background())
defer cancel()

c := wavy.NewClient(ctx, hclog.NewNullLogger(), os.Getenv("CLIENT_ID"), os.Getenv("CLIENT_SECRET")
profile, err := c.UserService().GetProfile(ctx, wavy.UserURI{Username: "OGKevin"})
if err != nil {
    panic(err)
}

License

MIT