Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.07 KB

File metadata and controls

43 lines (27 loc) · 1.07 KB

vgy

vgy

Simple Post image file to vgy.me

Important

We are not affiliated to vgy.me

vgy API doc

VGY.ME API doc is here

MIT Licence

Frontware

Maintainability

Doc

Doc online is on godoc

Usage

import "github.com/Frontware/vgy"
import "fmt"

func main () {

    // Get your user key here: https://vgy.me/account/details#userkeys
    vgy.UserKey = "PUT YOUR VGY USER KEY HERE"
    // You must have the file "image.png" in current folder
    info, err := vgy.UploadImageFile("image.png")
    if err!=nil {
        fmt.Fatal("Upload failed ",err)
    }
    fmt.Println("Upload to "+info.URL)
}