Skip to content

Latest commit

 

History

History
93 lines (63 loc) · 3.3 KB

ModelTypeApi.md

File metadata and controls

93 lines (63 loc) · 3.3 KB

\ModelTypeApi

All URIs are relative to https://radiomanager.io/api/v2

Method HTTP request Description
GetModelTypeById Get /model_types/{id} Get modelType by id
ListModelTypes Get /model_types Get all modelTypes.

GetModelTypeById

ModelTypeResult GetModelTypeById(ctx, id, optional) Get modelType by id

Get modelType by id

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
id int64 ID of ModelType (Required)
optional map[string]interface{} optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a map[string]interface{}.

Name Type Description Notes
id int64 ID of ModelType (Required)
externalStationId int64 Query on a different (content providing) station (Optional)

Return type

ModelTypeResult

Authorization

[API Key](../README.md#API Key)

HTTP request headers

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

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

ListModelTypes

ModelTypeResults ListModelTypes(ctx, optional) Get all modelTypes.

List all modelTypes.

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
optional map[string]interface{} optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a map[string]interface{}.

Name Type Description Notes
page int64 Current page (Optional)
programId int64 Search on Program ID (Optional)
broadcastId int64 Search on Broadcast ID (Optional)
itemId int64 Search on Item ID (Optional)
campaignId int64 Search on Campaign ID (Optional)
presenterId int64 Search on Presenter ID (Optional)
contactId int64 Search on Contact ID (Optional)
model string Search Modeltypes for certain Model (Optional)
limit int64 Results per page (Optional)
orderBy string Field to order the results (Optional)
orderDirection string Direction of ordering (Optional)
externalStationId int64 Query on a different (content providing) station (Optional)

Return type

ModelTypeResults

Authorization

[API Key](../README.md#API Key)

HTTP request headers

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

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