This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
For more information, please visit https://otito.dev
Install the following dependencies:
go get github.com/stretchr/testify/assert
go get golang.org/x/net/context
Put the package under your project folder and add the following in import:
import openapi "github.com/ayinke-llc/otito-go"
// to authenticate
ctx := context.WithValue(context.Background(), otito.ContextAPIKeys, map[string]otito.APIKey{
"ApiKeyAuth": {
Key: "sk_xyz",
Prefix: "Bearer",
},
})
cfg := otito.NewConfiguration()
client := otito.NewAPIClient(cfg)