cristopher-namchee / glair-vision-go

Unofficial GLAIR Vision SDK for Go
https://docs.glair.ai/vision
MIT License
0 stars 0 forks source link

DEPRECATED: Moved to GLAIR's repository

GLAIR

GLAIR Vision Go SDK

License

## Requirement - Go 1.18 or later with Go modules. ## Installation You can import the SDK in your Go files with `import`: ```go import ( "github.com/glair-ai/glair-vision-go" "github.com/glair-ai/glair-vision-go/client" ) ``` After that, you can run `go` commands and let the Go toolchain resolve and fetch the SDK module automatically. Alternatively, you can also run `go get` to explicitly resolve and fetch the SDK module: ```bash go get -u github.com/glair-ai/glair-vision-go ``` ## Usage The package needs to be configured with your credentials, see [here](https://docs.glair.ai/vision/authentication) for more detailed instructions ```go package main import ( "github.com/glair-ai/glair-vision-go" "github.com/glair-ai/glair-vision-go/client" ) func main() { config := glair.NewConfig("", "", "") client := client.New(config) } ``` The configuration object will be initialized with the following values: | Option | Default | Description | | ------------ | ----------------------------- | --------------------------------------------------------------- | | `BaseUrl` | `https://api.vision.glair.ai` | Base URL for GLAIR Vision API | | `ApiVersion` | `v1` | GLAIR Vision API version to be used | | `Client` | Default Go HTTP client | HTTP Client to be used when sending request to GLAIR Vision API | You can change the above values using the provided `With