Categorygithub.com/godeezer/lib
repository
1.2.1
Repository: https://github.com/godeezer/lib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# 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.