DSCGS-4 enough for today

This commit is contained in:
irlndts
2017-04-25 19:39:32 +03:00
parent 26dbacfe44
commit dd4fa14f61
7 changed files with 104 additions and 79 deletions

View File

@@ -9,7 +9,7 @@ import (
func main() {
d := discogs.NewClient("TestDiscogsClient/0.0.1 +http://irlndts.moscow", "")
request := &discogs.SearchRequest{Q: "The Reggaenauts - River Rock / Thursday Kick-off", Page: 0, Per_page: 1}
request := &discogs.SearchRequest{Q: "The Swindlers - Dig Out Alive!", Page: 0, Per_page: 1}
search, _, err := d.Search.Search(request)
if err != nil {
@@ -18,6 +18,12 @@ func main() {
}
for _, r := range search.Results {
fmt.Println(r.Id, r.Title)
fmt.Printf("%+v\n", r)
//fmt.Println(r.Id, r.Title)
release, _ := d.Release(r.ID)
fmt.Printf("%+v\n", release)
}
}