Skip to content

null-none/ImgurUploadPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ImgurUploadPHP

PHP class for quickly uploading images to Imgur.

$imgur = new ImgurUploader;
$imgur->setClientId('clientID');
$result = $imgur->uploadImage('browserling.png');
if (!$result) {
  $error = $imgur->getError();
  print "Upload failed. Error: $error";
}
else if ($result['status'] != 200) {
  print "Upload failed. Error: " . $result['data']['error'];
  print_r($result);
}
else {
  print "Upload successful!";
  print_r($result);
}

About

Class for use imgur API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages