Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dlion/goimgur
A simple library to upload an image on imgur
https://github.com/dlion/goimgur
api go golang imgur wrapper
Last synced: 2 months ago
JSON representation
A simple library to upload an image on imgur
- Host: GitHub
- URL: https://github.com/dlion/goimgur
- Owner: dlion
- License: mit
- Created: 2015-05-24T23:05:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-25T00:12:59.000Z (over 9 years ago)
- Last Synced: 2024-06-21T18:59:51.046Z (6 months ago)
- Topics: api, go, golang, imgur, wrapper
- Language: Go
- Size: 146 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goImgur [![Build Status](https://travis-ci.org/dlion/goImgur.svg?branch=master)](https://travis-ci.org/dlion/goImgur)
> A simple library to upload an image on [imgur](https://imgur.com)
## Install
```
go get github.com/dlion/goImgur
```## Usage
```go
package mainimport (
"fmt"
"log"
"github.com/dlion/goImgur"
)func main() {
str, err := goImgur.Upload("pathToImage.png", "clientID")
if err != nil {
log.Panic(err)
}fmt.Println(*str)
}
```## Prototype
```go
Upload(string, string) (*string, error)
```## Author
* Domenico Luciani
* http://dlion.it
* [email protected]## License
MIT © [Domenico Luciani](http://github.com/DLion)