A simple and powerful PHP dribbble client
A simple and powerful PHP Client that covers every endpoint of the dribbble api
Open terminal and paste the following:
cd the-directory-to-put-bbball-in
git clone https://github.com/ekdevdes/bbball.git
<?php
include_once 'bbball.php';
$dribbble = new BBBall;
<?php
// fetch page 2
$dribbble->page = 2;
// …and lets get 20 shots per page
$dribbble->per_page = 20;
// get shots
$shots = $dribbble->get_shots();
// get a shot
$shot = $dribbble->get_shot(43424);
// get a player's info
$player_info = $dribbble->get_player_info('ethankr');
// get only a shot's rebounds
$rebounds = $dribbble->get_shot_rebounds(43424);
// get only a shot's comments
$comments = $dribbble->get_shot_comments(43424);
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)
$id
int
The shots id. [Required] [Default: none]$show_rebounds
bool
If true will include the given shot's (the shot is specified by the $id param) rebounds [Optional][Default: false]$show_comments
bool
If true will include the given shot's (the shot is specified by the $id param) comments [Optional][Default: false] get_shots($list="everyone",$player_id=NULL)
$list
string
The list to fetch the shots from. Either "debuts","everyone","popular","following" or "likes" [Optional][Default: "everyone"]. For "following" or "likes" the $player_id
must be not NULL $player_id
int
A given player's id. If not present then will it will be ignored. [Optional][Default: none]
$player_id
must not be NULL
$player_id
can either the players actual id or their userame without the '@' in the beginingget_player_info($id)
$id
int
or string
The player's id [Required][Default: none]. $id can either be the users actual id or their usernameget_shot_rebounds($id)
$id
int
the given shot's id$id
) reboundsget_shot_comments($id)
$id
int
the given shot's id$id
) commentsget_player_shots($id)
$id
int
or string
the given players id or username without the '@' signPlease report any bugs here on Github.
http://github.com/ekdevdes/bbball/issues
Thank you.
If you would like to contribute to bbball please do the following:
Thank you :)
bbball IS DOUBLE LICENSED UNDER THE MIT LICENSE AND GPL LICENSE
MIT LICENSE
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.
GPL LICENSE
A simple and powerful PHP Dribbble client Copyright (C) 2011 Ethan Kramer
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
bbball