Exemple #1
0
    // GET parameter doesn't exist, so we will have to ask user to allow access for our application
    $imgur->authorize();
}
/*-----------------------------------------------------------------------------------*/
/* Account
/*-----------------------------------------------------------------------------------*/
$imgur->account("username")->basic();
$imgur->account("username")->albums($page = 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);
//....