/
dribbble.js
119 lines (77 loc) · 2.92 KB
/
dribbble.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
//
// Dribbble.js is a client for the Dribbble´s API (http://http://dribbble.com/api)
// Usage:
// var dribbble = require('dribbble');
// var callback = function(shot, err){
// if(!err) console.log(shot);
// }
//
// dribbble.shots(21603, callback);
//
// When is required the :id param this can be or `1` or `simplebits`
//
var dribbble = exports;
//
// Default value of pages in the pagination
//
dribbble.PER_PAGE = 15;
//
// This function get the shot for a espeficed :id, then call the callback with
// callback = function(shot, err). `shot` is a object all informaction about the shot.
// If any error then `err` is not null.
//
dribbble.shot = function(id, callback){
var err = true;
callback.call({}, err);
}
//
// This function get the rebounds for a shot :id. Then call the callback to process the result o throw a exception
//
dribbble.rebounds = function(id, callback){}
//
// This function returns the set of comments for the shot specified by :id.
// then call the callback with all comments in a object
//
dribbble.comments = function(id, callback){}
//
// This function returns the specified list of shots where :list has one of the following
// values € {debuts, everyone, popular}. If is not a correct value throw a exception.
// This function support pagination, then you can supply a page number. Default value per page is dribbble.PER_PAGE
//
dribbble.list = function(value, page, callback){}
//
// Returns the most recent shots for the player specified by :id.
// This function support pagination, then you can supply a page number. Default value elements per page is dribbble.PER_PAGE
//
dribbble.shots_for_player = function(id, page, callback){}
//
// This function returns the most recent shots published by those the player specified by :id is following.
// This function support pagination, then you can supply a page number. Default value elements per page is dribbble.PER_PAGE
//
dribbble.shots_following_for_player = function(id, page, callback){}
//
// This function Returns shots liked by the player specified by :id.
// This function support pagination, then you can supply a page number. Default value elements per page is dribbble.PER_PAGE
//
dribbble.shots_likes_for_player = function(id, page, callback){}
//
// This function returns profile details for a player specified by :id.
//
dribbble.player = function(id, callback){}
//
// This function Returns the list of followers for a player specified by :id.
//
dribbble.player_followers = function(id, callback){}
//
// This function Returns the list of players followed by the player specified by :id.
//
dribbble.player_following = function(id, callback){}
//
// This function Returns the list of players drafted by the player specified by :id.
//
dribbble.player_draftees = function(id, callback){}
/// ----------------------- PRIVATE FUNCTIONS -----------------
//
//
//
var getJSON = function(){}