All URIs are relative to https://app.corellium.com/api
Method | HTTP request | Description |
---|---|---|
V1GetModelSoftware | Get /v1/models/{model}/software | Get Software for Model |
V1GetModels | Get /v1/models | Get Supported Models |
[]Firmware V1GetModelSoftware(ctx, model).Execute()
Get Software for Model
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aimoda/go-corellium-api-client"
)
func main() {
model := "model_example" // string | Model to list available software for
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ModelsApi.V1GetModelSoftware(context.Background(), model).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ModelsApi.V1GetModelSoftware``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1GetModelSoftware`: []Firmware
fmt.Fprintf(os.Stdout, "Response from `ModelsApi.V1GetModelSoftware`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
model | string | Model to list available software for |
Other parameters are passed through a pointer to a apiV1GetModelSoftwareRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Model V1GetModels(ctx).Execute()
Get Supported Models
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aimoda/go-corellium-api-client"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ModelsApi.V1GetModels(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ModelsApi.V1GetModels``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1GetModels`: []Model
fmt.Fprintf(os.Stdout, "Response from `ModelsApi.V1GetModels`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiV1GetModelsRequest 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]