Dribble API wrapper for node.js with Promise
Requires node >= 0.10
npm install node-dribbble
var dribbble = require('node-dribbble');
dribbble.shots('popular', { page: 3, per_page: 30 }).then(function (data) {
return data.shots
});Pagination is supported through the opts object. E.g. { page: 3, per_page: 30 }
/shot/:id. Returns details for a shot specified by :id.
/shots/:id/rebounds. Returns the set of rebounds (shots in response to a shot) for the shot specified by :id.
/shots/:id/comments. Returns the set of comments for the shot specified by :id.
/shots/:list. Returns the specified list of shots where :list has one of the following values: debuts, everyone, popular
/players/:id. Returns profile details for a player specified by :id.
/players/:id/shots. Returns the most recent shots for the player specified by :id
/players/:id/shots/following. Returns the most recent shots published by those the player specified by :id is following.
/players/:id/shots/likes. Returns shots liked by the player specified by :id.
/players/:id/followers. Returns the list of followers for a player specified by :id.
/players/:id/following. Returns the list of players followed by the player specified by :id.
/players/:id/draftees. Returns the list of players drafted by the player specified by :id.
- browser support (jsonp and browserify)
