-
Notifications
You must be signed in to change notification settings - Fork 0
Documentation
ekdevdes edited this page Jul 21, 2012
·
6 revisions
After you've included the bbball.php file and create a new instance of it here are the methods you can use:
-
get_shot($id,$show_rebounds=false,$show_comments=false)- Gets a single shot from dribbbble
-
$idintThe shots id. [Required] [Default: none] -
$show_reboundsboolIf true will include the given shot's (the shot is specified by the $id param) rebounds [Optional][Default: false] -
$show_commentsboolIf true will include the given shot's (the shot is specified by the $id param) comments [Optional][Default: false] - Returns: an array of the parsed form of the resulting JSON
-
get_shots($list="everyone",$player_id=NULL)- Gets shots from dribbble with optionally, a few filters
-
$liststringThe list to fetch the shots from. Either "debuts","everyone","popular","following" or "likes" [Optional][Default: "everyone"]. For "following" or "likes" the$player_idmust be not NULL -
$player_idintA given player's id. If not present then will it will be ignored. If present $list will be ignored. [Optional][Default: none]
NOTE: In order to specify the "following" or "likes" options the `$player_id` must not be NULL
NOTE: `$player_id` can either the players actual id or their userame without the '@' in the begining + **Returns: an array of the parsed form of the resulting JSON** -
get_player_info($id)- Get's a players info given a player id.
-
$idintorstringThe player's id [Required][Default: none]. $id can either be the users actual id or their username - Returns: an array of the parsed form of the resulting JSON
-
get_shot_rebounds($id)- Gets only a given shot's rebounds
-
$idintthe given shot's id - Returns: an array of the given shot's (specified by the
$id) rebounds
-
get_shot_comments($id)- Gets only a given shot's comments
-
$idintthe given shot's id - Returns: an array of the given shot's (specified by the
$id) comments
-
get_player_shots($id)- Gets only a given players shots
-
$idintorstringthe given players id or username without the '@' sign - Returns: an array from the parsed JSON
[Previous « Setup & Usage](https://github.com/ekdevdes/bbball/wiki/Setup & Usage)