exfm logo belongs to exfm. Node.js logo belongs to Node.js. This project is not an official exfm project and is not affliated with.
Connect to the ex.fm API, get information and stream music!
exfm;exfm;exfmsong;
Installation
$ npm install exfm
Usage
The exfm API makes use of chaining. Who doesn't like chaining?
exfm.user(username, cb)
Get a user's profile information.
exfm;
exfm.user(username).loved(cb)
Get a user's loved songs.
exfm;
exfm.user(username).followers(cb)
Get a user's followers.
exfm;
exfm.user(username).following(cb)
Get users a user is following.
exfm;
exfm.user(username).followingIds(cb)
Get the IDs of the users the user is following.
exfm;
exfm.user(username).followingSites(cb)
Get sites the user is following.
exfm;
exfm.user(username).loveFeed(cb)
Get a feed of songs loved by users the user is following.
exfm;
exfm.user(username).activiy(cb)
Get a feed of a user's activity, including loved songs, shared songs, and followed users.
exfm;
exfm.user(username).activityLove(cb)
Get a feed of a user's loved songs.
exfm;
exfm.user(username).notifications(cb)
Get a feed of actions being perfomed on the user, such as loving of songs the user has loved (AKA relove) and following the user-
exfm;
Contributors
License
(The MIT License)
Copyright (c) 2013 Jan Buschtöns buschtoens@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.