RadioManagerClient::StoryApi

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

MethodHTTP requestDescription
create_storyPOST /storiesCreate story.
delete_story_by_idDELETE /stories/idDelete story by id
get_story_by_idGET /stories/idGet story by id
list_storiesGET /storiesGet all stories.
update_story_by_idPATCH /stories/idUpdate story by id

create_story

PostSuccess create_story(data)

Create story.

Create story.

Example

“by

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::StoryApi.new

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

begin #Create story. result = api_instance.create_story(data) p result rescue RadioManagerClient::ApiError => e puts “Exception when calling StoryApi->create_story: #e” end

Parameters

NameTypeDescriptionNotes
dataStoryDataInputData (Required)

Return type

PostSuccess

Authorization

API Keyey)

HTTP request headers

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

delete_story_by_id

Success delete_story_by_id(id)

Delete story by id

Delete story by id

Example

“by

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::StoryApi.new

id = 789 # Integer | ID of Story (Required)

begin #Delete story by id result = api_instance.delete_story_by_id(id) p result rescue RadioManagerClient::ApiError => e puts “Exception when calling StoryApi->delete_story_by_id: #e” end

Parameters

NameTypeDescriptionNotes
idIntegerID of Story (Required)

Return type

Success

Authorization

API Keyey)

HTTP request headers

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

get_story_by_id

StoryResult get_story_by_id(id, opts)

Get story by id

Get story by id

Example

“by

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::StoryApi.new

id = 789 # Integer | ID of Story (Required)

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

begin #Get story by id result = api_instance.get_story_by_id(id, opts) p result rescue RadioManagerClient::ApiError => e puts “Exception when calling StoryApi->get_story_by_id: #e” end

Parameters

NameTypeDescriptionNotes
idIntegerID of Story (Required)
externalstation_idIntegerQuery on a different (content providing) station (Optional)[optional]

Return type

StoryResult

Authorization

API Keyey)

HTTP request headers

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

list_stories

StoryResults list_stories(opts)

Get all stories.

List all stories.

Example

“by

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::StoryApi.new

opts = { page: 1, # Integer | Current page (Optional) item_id: 789, # Integer | Search on Item ID (Optional) (Relation) model_type_id: 789, # Integer | Search on ModelType ID (Optional) (Relation) tag_id: 789, # Integer | Search on Tag 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) externalstation_id: 789 # Integer | Query on a different (content providing) station (Optional) }

begin #Get all stories. result = api_instance.list_stories(opts) p result rescue RadioManagerClient::ApiError => e puts “Exception when calling StoryApi->list_stories: #e” end

Parameters

NameTypeDescriptionNotes
pageIntegerCurrent page (Optional)[optional][default to 1]
item_idIntegerSearch on Item ID (Optional) `(Relation)`[optional]
model_type_idIntegerSearch on ModelType ID (Optional) `(Relation)`[optional]
tag_idIntegerSearch on Tag ID (Optional) `(Relation)`[optional]
limitIntegerResults per page (Optional)[optional]
order_byStringField to order the results (Optional)[optional]
order_directionStringDirection of ordering (Optional)[optional]
externalstation_idIntegerQuery on a different (content providing) station (Optional)[optional]

Return type

StoryResults

Authorization

API Keyey)

HTTP request headers

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

update_story_by_id

Success update_story_by_id(id, opts)

Update story by id

Update story by id

Example

“by

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::StoryApi.new

id = 789 # Integer | ID of Story (Required)

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

begin #Update story by id result = api_instance.update_story_by_id(id, opts) p result rescue RadioManagerClient::ApiError => e puts “Exception when calling StoryApi->update_story_by_id: #e” end

Parameters

NameTypeDescriptionNotes
idIntegerID of Story (Required)
dataStoryDataInputData (Optional)[optional]

Return type

Success

Authorization

API Keyey)

HTTP request headers

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