Exemplo n.º 1
0
$imgur->account("username")->images($page = 0);
$imgur->account("new_username")->create($options);
//$options will be used as post fields. For more info go to Imgur API Docs.
//....
/*-----------------------------------------------------------------------------------*/
/* Images
/*-----------------------------------------------------------------------------------*/
$imgur->image("image_id")->get();
$imgur->image("image_id")->delete();
$imgur->image('image_id')->update($options);
$imgur->image("image_id")->favorite();
//....
/*-----------------------------------------------------------------------------------*/
/* Comments
/*-----------------------------------------------------------------------------------*/
$imgur->comment("comment_id")->get();
$imgur->comment("comment_id")->delete();
$imgur->comment("comment_id")->report();
$imgur->comment("comment_id")->vote($type);
// "up" or "down";
$imgur->comment("comment_id")->replies();
$imgur->comment("comment_id")->reply_create($options);
//....
/*-----------------------------------------------------------------------------------*/
/* Messages (User must be logged in);
/*-----------------------------------------------------------------------------------*/
$imgur->message()->messages();
$imgur->message()->single($id);
$imgur->message()->create($options);
$imgur->message()->delete($id);
$imgur->message()->message_count();