Categorygithub.com/uvasoftware/scanii-go
repository
2.0.0+incompatible
Repository: https://github.com/uvasoftware/scanii-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

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