Skip to content

OGKevin/go-wavy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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