Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cvik/espop
Erlang client API for the spop server
https://github.com/cvik/espop
Last synced: about 2 months ago
JSON representation
Erlang client API for the spop server
- Host: GitHub
- URL: https://github.com/cvik/espop
- Owner: cvik
- License: apache-2.0
- Created: 2014-02-05T18:52:01.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-19T18:00:23.000Z (almost 10 years ago)
- Last Synced: 2023-08-01T00:55:20.595Z (over 1 year ago)
- Language: Erlang
- Homepage:
- Size: 207 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
espop - Erlang client library for spop
=====This is a client library written in erlang to interface with the
excellent spop server http://github.com/Schnouki/spop. It support
all current commands of the spopd server. See the facade, espop.erl, for
documentation and specs.## Installation
- Use rebar (not included) to build
- There are no dependencies to download## Example usage
```erlang
1> espop:start().
ok
2> rr(espop).
[album,artist,offline_status,playlist,playlist_info,
playlist_ref,query_response,status,track,uri_info]
3> espop:find("Throne").
1 - Game of Thrones - Best of Seasons 1, 2 & 3
156 - Ramin Djawadi – Game Of Thrones
4> espop:play(1)
#status{status = <<"playing">>,repeat = false,
shuffle = false,total_tracks = 19,current_track = 1,
artist = <<"L'Orchestra Cinematique">>,
title = <<"The King's Arrival (from Game of Thrones - Season 1)">>,
album = <<"Game of Thrones - Best of Seasons 1, 2 & 3">>,
duration = 216000,position = 0.371,
uri = <<"spotify:track:4tJqf2Cc9JP77Z984hJdYl">>,
popularity = 45}
```For the above to work, the spopd server must be running at localhost:6602.
Set the application environment variables 'host' and 'port' to change which
server to talk to.## License
Apache license version 2.0. See the LICENSE file for details.
The file src/rfc4627.erl is excluded from this license and is
borrowed from http://github.com/tonyg/erlang-rfc4627. See this file
for copyright and license details.