Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
null-none committed Jul 18, 2015
1 parent ba127a3 commit 27221f3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ImgurUploadPHP
Class for use imgur API.

```
$imgur = new Imgur;
$imgur->clientId = '8847f1a6a583d5e';
$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);
```

0 comments on commit 27221f3

Please sign in to comment.