# ImgurUploadPHP
Class for use imgur API.

```
  $imgur = new Imgur;
  $imgur->clientId = 'code';
  $filename = 'images/browserling.png';
  $handle = fopen($filename, "r");
  $data = fread($handle, filesize($filename));
  $params   = array('image' => base64_encode($data));
  $result = $imgur->uploadImage($params);
  print_r($result);
```

# 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);
```

Improve readme to match the new interface
Improve readme to match the new interface
