All URIs are relative to https://api.xrdm.app/api/v2
| Method | HTTP request | Description |
|---|---|---|
| GetDeviceModel | Get /device-models/{deviceModelId} | |
| GetDeviceModels | Get /device-models |
GetApps200ResponseDataInnerDeviceModelsInner GetDeviceModel(ctx, deviceModelId).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/heru-inc/arbor-api-go"
)
func main() {
deviceModelId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of a device model.
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DeviceModelsAPI.GetDeviceModel(context.Background(), deviceModelId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DeviceModelsAPI.GetDeviceModel``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDeviceModel`: GetApps200ResponseDataInnerDeviceModelsInner
fmt.Fprintf(os.Stdout, "Response from `DeviceModelsAPI.GetDeviceModel`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| deviceModelId | string | The ID of a device model. |
Other parameters are passed through a pointer to a apiGetDeviceModelRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
GetApps200ResponseDataInnerDeviceModelsInner
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetDeviceModels200Response GetDeviceModels(ctx).PerPage(perPage).Page(page).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/heru-inc/arbor-api-go"
)
func main() {
perPage := int32(56) // int32 | The number of items to return per page. (optional) (default to 10)
page := int32(56) // int32 | The page number to return. (optional) (default to 1)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DeviceModelsAPI.GetDeviceModels(context.Background()).PerPage(perPage).Page(page).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DeviceModelsAPI.GetDeviceModels``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDeviceModels`: GetDeviceModels200Response
fmt.Fprintf(os.Stdout, "Response from `DeviceModelsAPI.GetDeviceModels`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetDeviceModelsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| perPage | int32 | The number of items to return per page. | [default to 10] |
| page | int32 | The page number to return. | [default to 1] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]