spoty

Spotify web API wrapper https://github.com/davnils/spoty

Latest on Hackage:0.1.0.2

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by David Nilsson

Web API https://developer.spotify.com/web-api/ wrapper powered by lens and pipes, allowing easy access to public endpoints. Does not have any external dependencies nor requirements regarding app registration.

  • Paging is handled transparently using pipes

  • All data types are navigated using lenses

All public endpoints, with multi-get versions excluded, are implemented.

> :set -XOverloadedStrings
> :m +Control.Lens Utils.Spoty
> Just artist <- fetchOne (searchArtist "avicii")      -- assume at least one match
> popular <- getArtistTop (view spotifyID artist) "SE" -- retrieve the most popular tracks in Sweden
> mapM_ (print . view name) popular                    -- print the corresponding names
"Hey Brother"
"Addicted To You"
"Wake Me Up"
...

Please read the README for details.

Changes

Changes in 1.0.0.2
------------------

* Only support lens >=4.4 and wreq >=0.2 due to breaking changes

Changes in 1.0.0.1
------------------

* New upper bound for base 4.7 (supports haskell platform 2014.2.0.0 and GHC 7.8.3)

* New upper bound for aeson 0.8

Changes in 1.0.0.0
------------------

* Initial release
comments powered byDisqus