lib

module
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2021 License: ISC

README

godeezer/lib

Godoc Reference Report Card

A Go library for interacting with Deezer

Example usage

These are just a few examples, view the godoc for full documentation. (error handling omitted for brevity)

// create client with arl token stored in $ARL
client, _ := deezer.NewClient(os.Getenv("ARL"))

// fetch a song
song, _ := client.Song("1297748632")
// download that song
r, _ := client.Download(song, deezer.FLAC)
// r is an io.ReadCloser, you can copy it into an io.Writer etc

// fetch an album
album, _ := client.Album("219026842")
// fetch an album's songs
songs, _ := client.SongsByAlbum("219026842", -1)

Contributing

Pull requests and issues are welcome.

License

This library is free software. See the ISC license included in LICENSE.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL