Skip to content
This repository was archived by the owner on May 7, 2021. It is now read-only.

uvasoftware/scanii-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Scanii golang client

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •