cloudinary

package
v0.0.0-...-49cf9ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2015 License: MIT, MIT Imports: 4 Imported by: 0

README

cloudinary

context base go-cloudinary wrapper for golang

Cloudinary

Usage

example

package main

import (
	"bytes"
	"io/ioutil"

	"github.com/kyokomi/cloudinary"
	"golang.org/x/net/context"
)

func main() {
	ctx := context.Background()
    ctx = NewContext(ctx, "cloudinary://<API Key>:<API Secret>@<Cloud name>")

	data, _ := ioutil.ReadFile("<imageFile>")
	cloudinary.UploadStaticImage(ctx, "<name>", bytes.NewBuffer(data))
}

License

MIT

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL