Skip to content

Latest commit

 

History

History
70 lines (43 loc) · 1.46 KB

File metadata and controls

70 lines (43 loc) · 1.46 KB

ConfigAPI

All URIs are relative to https://api.reveng.ai

Method HTTP request Description
GetConfig Get /v2/config Get Config

GetConfig

BaseResponseConfigResponse GetConfig(ctx).Execute()

Get Config

Example

package main

import (
	"context"
	"fmt"
	"os"
	revengai "github.com/RevEngAI/sdk-go/v3"
)

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)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetConfigRequest struct via the builder pattern

Return type

BaseResponseConfigResponse

Authorization

APIKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]