This repository has been archived on 2023-04-13. You can view files and clone it, but cannot push or open issues or pull requests.
go-discogs/examples/discogs_example.go
2017-05-09 18:52:58 +03:00

24 lines
409 B
Go

package main
import (
"fmt"
"github.com/irlndts/go-discogs"
)
func main() {
d := discogs.NewClient().UserAgent("TestDiscogsClient/0.0.1 +http://irlndts.moscow").Token("oQTQKAprakIQfWOkAxTdYyDpgUqahHtdbHTuYkIy")
if err := d.Currency("EUR"); err != nil {
fmt.Println(err)
return
}
release, err := d.Release(9893847)
if err != nil {
fmt.Println(err)
return
}
fmt.Printf("%+v\n", release)
}