Skip to content

Latest commit

 

History

History
308 lines (215 loc) · 8.03 KB

TagApi.md

File metadata and controls

308 lines (215 loc) · 8.03 KB

RadioManagerClient::TagApi

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

Method HTTP request Description
create_tag POST /tags Create tag.
delete_tag_by_id DELETE /tags/{id} Delete tag by id
get_tag_by_id GET /tags/{id} Get tags by id
list_tags GET /tags Get a list of all the tags currently in your station.
update_tag_by_id PATCH /tags/{id} Update tag by id

create_tag

PostSuccess create_tag(data)

Create tag.

Create tag.

Example

# load the gem
require 'radiomanager_client'
# setup authorization
RadioManagerClient.configure do |config|
  # Configure API key authorization: API Key
  config.api_key['api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['api-key'] = 'Bearer'
end

api_instance = RadioManagerClient::TagApi.new

data = RadioManagerClient::TagDataInput.new # TagDataInput | Data **(Required)**


begin
  #Create tag.
  result = api_instance.create_tag(data)
  p result
rescue RadioManagerClient::ApiError => e
  puts "Exception when calling TagApi->create_tag: #{e}"
end

Parameters

Name Type Description Notes
data TagDataInput Data (Required)

Return type

PostSuccess

Authorization

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

HTTP request headers

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

delete_tag_by_id

Success delete_tag_by_id(id)

Delete tag by id

Delete tag by id

Example

# load the gem
require 'radiomanager_client'
# setup authorization
RadioManagerClient.configure do |config|
  # Configure API key authorization: API Key
  config.api_key['api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['api-key'] = 'Bearer'
end

api_instance = RadioManagerClient::TagApi.new

id = 789 # Integer | ID of Tag **(Required)**


begin
  #Delete tag by id
  result = api_instance.delete_tag_by_id(id)
  p result
rescue RadioManagerClient::ApiError => e
  puts "Exception when calling TagApi->delete_tag_by_id: #{e}"
end

Parameters

Name Type Description Notes
id Integer ID of Tag (Required)

Return type

Success

Authorization

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

HTTP request headers

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

get_tag_by_id

TagResult get_tag_by_id(id, opts)

Get tags by id

Get tags by id

Example

# load the gem
require 'radiomanager_client'
# setup authorization
RadioManagerClient.configure do |config|
  # Configure API key authorization: API Key
  config.api_key['api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['api-key'] = 'Bearer'
end

api_instance = RadioManagerClient::TagApi.new

id = 789 # Integer | ID of Tag **(Required)**

opts = { 
  _external_station_id: 789 # Integer | Query on a different (content providing) station *(Optional)*
}

begin
  #Get tags by id
  result = api_instance.get_tag_by_id(id, opts)
  p result
rescue RadioManagerClient::ApiError => e
  puts "Exception when calling TagApi->get_tag_by_id: #{e}"
end

Parameters

Name Type Description Notes
id Integer ID of Tag (Required)
_external_station_id Integer Query on a different (content providing) station (Optional) [optional]

Return type

TagResult

Authorization

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

HTTP request headers

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

list_tags

TagResults list_tags(opts)

Get a list of all the tags currently in your station.

Get a list of all the tags currently in your station. This feature supports pagination and will give a maximum results of 50 tags back.

Example

# load the gem
require 'radiomanager_client'
# setup authorization
RadioManagerClient.configure do |config|
  # Configure API key authorization: API Key
  config.api_key['api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['api-key'] = 'Bearer'
end

api_instance = RadioManagerClient::TagApi.new

opts = { 
  page: 789, # Integer | Current page *(Optional)*
  program_id: 789, # Integer | Search on Program ID *(Optional)* `(Relation)`
  item_id: 789, # Integer | Search on Item ID *(Optional)* `(Relation)`
  broadcast_id: 789, # Integer | Search on Broadcast ID *(Optional)* `(Relation)`
  contact_id: 789, # Integer | Search on Contact ID *(Optional)* `(Relation)`
  limit: 789, # Integer | Results per page *(Optional)*
  order_by: "order_by_example", # String | Field to order the results *(Optional)*
  order_direction: "order_direction_example", # String | Direction of ordering *(Optional)*
  _external_station_id: 789 # Integer | Query on a different (content providing) station *(Optional)*
}

begin
  #Get a list of all the tags currently in your station.
  result = api_instance.list_tags(opts)
  p result
rescue RadioManagerClient::ApiError => e
  puts "Exception when calling TagApi->list_tags: #{e}"
end

Parameters

Name Type Description Notes
page Integer Current page (Optional) [optional]
program_id Integer Search on Program ID (Optional) `(Relation)` [optional]
item_id Integer Search on Item ID (Optional) `(Relation)` [optional]
broadcast_id Integer Search on Broadcast ID (Optional) `(Relation)` [optional]
contact_id Integer Search on Contact ID (Optional) `(Relation)` [optional]
limit Integer Results per page (Optional) [optional]
order_by String Field to order the results (Optional) [optional]
order_direction String Direction of ordering (Optional) [optional]
_external_station_id Integer Query on a different (content providing) station (Optional) [optional]

Return type

TagResults

Authorization

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

HTTP request headers

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

update_tag_by_id

Success update_tag_by_id(id, opts)

Update tag by id

Update tag by id

Example

# load the gem
require 'radiomanager_client'
# setup authorization
RadioManagerClient.configure do |config|
  # Configure API key authorization: API Key
  config.api_key['api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['api-key'] = 'Bearer'
end

api_instance = RadioManagerClient::TagApi.new

id = 789 # Integer | ID of Tag **(Required)**

opts = { 
  data: RadioManagerClient::TagDataInput.new # TagDataInput | Data *(Optional)*
}

begin
  #Update tag by id
  result = api_instance.update_tag_by_id(id, opts)
  p result
rescue RadioManagerClient::ApiError => e
  puts "Exception when calling TagApi->update_tag_by_id: #{e}"
end

Parameters

Name Type Description Notes
id Integer ID of Tag (Required)
data TagDataInput Data (Optional) [optional]

Return type

Success

Authorization

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

HTTP request headers

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