Skip to content

Latest commit

 

History

History
executable file
·
16 lines (12 loc) · 288 Bytes

README.md

File metadata and controls

executable file
·
16 lines (12 loc) · 288 Bytes

ImgurUploadPHP

PHP class for quickly uploading images to Imgur.

$imgur = new ImgurUploader;
$imgur->setClientId('clientID');

$result = $imgur->uploadImage('images/browserling.png');
if (!$result) {
  $error = $imgur->getError();
  print "Error: $error";
}

print_r($result);