cloudinary

package module
v0.0.0-...-cf4c95b Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2017 License: MIT Imports: 4 Imported by: 7

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 = cloudinary.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