Golang bindings for the Zaycev.net API
go get github.com/pixfid/go-zaycevnet
package main
import (
"github.com/pixfid/go-zaycevnet/api"
"net/url"
"strconv"
)
func main() {
client := api.NewZClient(nil, "", "static_key")
client.Auth()
params := url.Values{}
params.Add("query", "ZZ TOP")
params.Add("page", strconv.Itoa(1))
params.Add("type", "all")
params.Add("sort", "")
params.Add("style", "")
result, err := client.Search(params)
if err != nil {
}
println(result.PagesCount)
println(result.Artist.Name)
}
client.Search(query string)
client.AutoComplete(query string)
client.Top(page int)
client.MusicSetList(page int)
client.MusicSetDetile(musicSetId int)
client.Genre(genreName string, page int)
client.Artist(artistID int)
client.Track(trackID int)
client.Options
client.Download(trackID int)
client.Play(trackID int)