Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
pkg
 
 
 
 
 
 
 
 
 
 
 
 
 
 

A pure Go interface to the Scanii content processing service - https://scanii.com

How to use this client

Installing

$ go get github.com/uvasoftware/scanii-go 

Sample usage:

client := scanii.NewClient(&scanii.ClientOpts{
		Target: endpoints.LATEST,
		Key:    key,
		Secret: secret,
	})

file, _ := ioutil.TempFile("", "")
defer func() {
    _ = file.Close()
    _ = os.Remove(file.Name())
}()

_, _ = file.Write([]byte("hello world"))

metadata := map[string]string{
    "m1": "v1",
    "m2": "v2",
}

r, err := client.Process(file.Name(), "", metadata)

Please note that you will need a valid scanii.com account and API Credentials.

More advanced usage examples can be found here

General documentation on scanii can be found here