All URIs are relative to https://api.reveng.ai
| Method | HTTP request | Description |
|---|---|---|
| GetConfig | Get /v2/config | Get Config |
| V3GetConfig | Get /v3/config | Get client configuration. |
| V3GetModels | Get /v3/models | Get the models available for analysis. |
BaseResponseConfigResponse GetConfig(ctx).Execute()
Get Config
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v4"
)
func main() {
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.ConfigAPI.GetConfig(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigAPI.GetConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetConfig`: BaseResponseConfigResponse
fmt.Fprintf(os.Stdout, "Response from `ConfigAPI.GetConfig`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetConfigRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetConfigOutputBody V3GetConfig(ctx).Execute()
Get client configuration.
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v4"
)
func main() {
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.ConfigAPI.V3GetConfig(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigAPI.V3GetConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V3GetConfig`: GetConfigOutputBody
fmt.Fprintf(os.Stdout, "Response from `ConfigAPI.V3GetConfig`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiV3GetConfigRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetModelsOutputBody V3GetModels(ctx).Execute()
Get the models available for analysis.
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v4"
)
func main() {
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.ConfigAPI.V3GetModels(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfigAPI.V3GetModels``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V3GetModels`: GetModelsOutputBody
fmt.Fprintf(os.Stdout, "Response from `ConfigAPI.V3GetModels`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiV3GetModelsRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]