Skip to content

pixfid/go-zaycevnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-zaycevnet

Golang bindings for the Zaycev.net API

Build Status Go Report Card

Install:

go get github.com/pixfid/go-zaycevnet

Usage:

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)
}

Supported Methods

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)

About

Golang bindings for the Zaycev.net API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages