Skip to content

Latest commit

 

History

History
132 lines (82 loc) · 2.88 KB

ConfigAPI.md

File metadata and controls

132 lines (82 loc) · 2.88 KB

\ConfigAPI

All URIs are relative to https://app.corellium.com/api

Method HTTP request Description
V3GetConfig Get /v3/config Get deployment configuration
V3GetVersion Get /v3/version Get the platform version

V3GetConfig

ConfigResponse V3GetConfig(ctx).Execute()

Get deployment configuration

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/corellium/corellium-go-api-client"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.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`: ConfigResponse
	fmt.Fprintf(os.Stdout, "Response from `ConfigAPI.V3GetConfig`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

ConfigResponse

Authorization

No authorization required

HTTP request headers

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

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

V3GetVersion

DeploymentVersion V3GetVersion(ctx).Execute()

Get the platform version

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/corellium/corellium-go-api-client"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ConfigAPI.V3GetVersion(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ConfigAPI.V3GetVersion``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `V3GetVersion`: DeploymentVersion
	fmt.Fprintf(os.Stdout, "Response from `ConfigAPI.V3GetVersion`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

DeploymentVersion

Authorization

BearerAuth

HTTP request headers

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

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