Skip to content
Scanii golang client
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
endpoints
models
.gitignore
LICENSE
Makefile
README.md
account.go
auth.go
client.go
files.go
go.mod
go.sum
integration_test.go
ping.go

README.md

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

You can’t perform that action at this time.