radiomanager
v1.1.12
Published
This OpenAPI 3 Document describes the functionality of the API v2 of RadioManager. Note that no rights can be derived from this Document and the true functionality of the API might differ.
Downloads
7
Readme
radiomanager
Pluxbox RadioManager gives you the power, flexibility and speed you always wanted in a lightweight and easy-to-use web-based radio solution. With Pluxbox RadioManager you can organise your radio workflow and automate your omnichannel communication with your listeners. We offer wide range specialised services for the radio and connections like Hybrid Radio, Visual Radio, your website and social media without losing focus on your broadcast. For more information visit: pluxbox.com
- API version: 2.0
- Package version: 1.1.12
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen For more information, please visit https://pluxbox.com
Installation
For Node.js
npm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install radiomanager --save
Finally, you need to build the module:
npm run build
Local development
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json
(and this README). Let's call this JAVASCRIPT_CLIENT_DIR
. Then run:
npm install
Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR
:
npm link
To use the link you just defined in your project, switch to the directory you want to use your radiomanager from, and run:
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
Finally, you need to build the module:
npm run build
git
If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:
npm install GIT_USER_ID/GIT_REPO_ID --save
Getting Started
Please follow the installation instruction and execute the following JS code:
var radiomanager = require('radiomanager');
var defaultClient = radiomanager.ApiClient.instance;
// Configure API key authorization: API-Key
var API-Key = defaultClient.authentications['API-Key'];
API-Key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//API-Key.apiKeyPrefix['api-key'] = "Token"
var api = new radiomanager.BlockApi()
var id = 789; // {Number} ID of Block **(Required)**
var opts = {
'externalStationId': 789 // {Number} Query on a different (content providing) station *(Optional)*
};
api.getBlockById(id, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
Documentation for API Endpoints
All URIs are relative to https://radiomanager.io/api/v2
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- radiomanager.BlockApi | getBlockById | GET /blocks/{id} | Get block by id radiomanager.BlockApi | getCurrentBlock | GET /blocks/current | Get current Block radiomanager.BlockApi | getNextBlock | GET /blocks/next | Get upcoming Block radiomanager.BlockApi | listBlocks | GET /blocks | Get a list of all blocks currently in your station. radiomanager.BroadcastApi | createBroadcast | POST /broadcasts | Create broadcast. radiomanager.BroadcastApi | deleteBroadcastById | DELETE /broadcasts/{id} | Delete broadcast by id radiomanager.BroadcastApi | getBroadcastById | GET /broadcasts/{id} | Get broadcast by id radiomanager.BroadcastApi | getCurrentBroadcast | GET /broadcasts/current | Get current Broadcast radiomanager.BroadcastApi | getDailyEPG | GET /broadcasts/epg/daily | Get daily EPG radiomanager.BroadcastApi | getEPGByDate | GET /broadcasts/epg | Get EPG by date radiomanager.BroadcastApi | getNextBroadcast | GET /broadcasts/next | Get next Broadcast radiomanager.BroadcastApi | getWeeklyEPG | GET /broadcasts/epg/weekly | Get weekly EPG radiomanager.BroadcastApi | listBroadcasts | GET /broadcasts | Get all broadcasts. radiomanager.BroadcastApi | printBroadcastById | GET /broadcasts/print/{id} | Print broadcast by id with template radiomanager.BroadcastApi | updateBroadcastByID | PATCH /broadcasts/{id} | Update broadcast by id radiomanager.CampaignApi | createCampaign | POST /campaigns | Create campaign. radiomanager.CampaignApi | deleteCampaignById | DELETE /campaigns/{id} | Delete campaign by id radiomanager.CampaignApi | getCampaignById | GET /campaigns/{id} | Get campaign by id radiomanager.CampaignApi | listCampaigns | GET /campaigns | Get all campaigns. radiomanager.CampaignApi | updateCampaignByID | PATCH /campaigns/{id} | Update campaign by id radiomanager.ContactApi | createContact | POST /contacts | Create contact. radiomanager.ContactApi | deleteContactById | DELETE /contacts/{id} | Delete contact by id radiomanager.ContactApi | getContactById | GET /contacts/{id} | Get contact by id radiomanager.ContactApi | listContacts | GET /contacts | Get all contacts. radiomanager.ContactApi | updateContactByID | PATCH /contacts/{id} | Update contact by id radiomanager.GenreApi | getGenreById | GET /genres/{id} | Get genre by id radiomanager.GenreApi | listGenres | GET /genres | List all genres. radiomanager.GroupApi | getGroupById | GET /groups/{id} | Get group by id radiomanager.GroupApi | listGroups | GET /groups | Get all groups. radiomanager.ItemApi | createItem | POST /items | Create an new item. radiomanager.ItemApi | currentItemPostStructure | POST /items/current/structure | Post a current playing item, keep structure radiomanager.ItemApi | currentItemPostTiming | POST /items/current/timing | Post current playing Item radiomanager.ItemApi | deleteItemById | DELETE /items/{id} | Delete item by ID. radiomanager.ItemApi | getCurrentItem | GET /items/current | Get current Item radiomanager.ItemApi | getItemById | GET /items/{id} | Get extended item details by ID. radiomanager.ItemApi | listItems | GET /items | Get a list of all the items currently in your station. radiomanager.ItemApi | playlistPostMerge | POST /items/playlist/merge | Post a playlist, do not remove previously imported items radiomanager.ItemApi | playlistPostStructure | POST /items/playlist/structure | Post a playlist, keep current structure radiomanager.ItemApi | playlistPostTiming | POST /items/playlist/timing | Post a playlist radiomanager.ItemApi | stopCurrentItem | POST /items/stopcurrent | Stop an Item radiomanager.ItemApi | updateItemById | PATCH /items/{id} | Update extended item details by ID. radiomanager.ModelTypeApi | getModelTypeById | GET /model_types/{id} | Get modelType by id radiomanager.ModelTypeApi | listModelTypes | GET /model_types | Get all modelTypes. radiomanager.PresenterApi | createPresenter | POST /presenters | Create presenter. radiomanager.PresenterApi | deletePresenterById | DELETE /presenters/{id} | Delete presenter by id radiomanager.PresenterApi | getPresenterById | GET /presenters/{id} | Get presenter by id radiomanager.PresenterApi | listPresenters | GET /presenters | Get all presenters. radiomanager.PresenterApi | updatePresenterByID | PATCH /presenters/{id} | Update presenter by id radiomanager.ProgramApi | createProgram | POST /programs | Create program. radiomanager.ProgramApi | deleteProgramById | DELETE /programs/{id} | Delete program by id radiomanager.ProgramApi | getProgramById | GET /programs/{id} | Get program by id radiomanager.ProgramApi | listPrograms | GET /programs | Get all programs. radiomanager.ProgramApi | updateProgramByID | PATCH /programs/{id} | Update program by id radiomanager.StationApi | getStation | GET /station | Get own station only radiomanager.StringApi | getStringsByName | GET /strings/{name} | Get Strings (formatted) radiomanager.TagApi | createTag | POST /tags | Create tag. radiomanager.TagApi | deleteTagById | DELETE /tags/{id} | Delete tag by id radiomanager.TagApi | getTagById | GET /tags/{id} | Get tags by id radiomanager.TagApi | listTags | GET /tags | Get a list of all the tags currently in your station. radiomanager.TagApi | updateTagByID | PATCH /tags/{id} | Update tag by id radiomanager.UserApi | deleteUserById | DELETE /users/{id} | Remove User from station by Id radiomanager.UserApi | getUserById | GET /users/{id} | Get user by id radiomanager.UserApi | inviteUserByMail | POST /users/invite | Invite user by mail radiomanager.UserApi | listUsers | GET /users | Get all users. radiomanager.VisualSlideApi | getVisualSlide | GET /visual | Get Visual Slide Image
Documentation for Models
- radiomanager.Block
- radiomanager.BlockRelations
- radiomanager.BlockRelationsBroadcast
- radiomanager.BlockRelationsBroadcastParams
- radiomanager.BlockRelationsItems
- radiomanager.BlockRelationsItemsParams
- radiomanager.BlockRelationsProgram
- radiomanager.BlockResult
- radiomanager.Broadcast
- radiomanager.BroadcastDataInput
- radiomanager.BroadcastEPGDay
- radiomanager.BroadcastEPGRelations
- radiomanager.BroadcastEPGResult
- radiomanager.BroadcastInputOnly
- radiomanager.BroadcastOutputOnly
- radiomanager.BroadcastRelations
- radiomanager.BroadcastRelationsBlocks
- radiomanager.BroadcastRelationsGenre
- radiomanager.BroadcastRelationsGroup
- radiomanager.BroadcastRelationsItems
- radiomanager.BroadcastRelationsItemsParams
- radiomanager.BroadcastRelationsModelType
- radiomanager.BroadcastRelationsPresenters
- radiomanager.BroadcastRelationsTags
- radiomanager.BroadcastResult
- radiomanager.Campaign
- radiomanager.CampaignDataInput
- radiomanager.CampaignOutputOnly
- radiomanager.CampaignRelations
- radiomanager.CampaignRelationsItems
- radiomanager.CampaignRelationsItemsParams
- radiomanager.CampaignResult
- radiomanager.CampaignTemplateItem
- radiomanager.CampaignTemplateItemAllOf
- radiomanager.Contact
- radiomanager.ContactDataInput
- radiomanager.ContactOutputOnly
- radiomanager.ContactRelations
- radiomanager.ContactRelationsItems
- radiomanager.ContactRelationsTags
- radiomanager.ContactRelationsTagsParams
- radiomanager.ContactResult
- radiomanager.EPGResults
- radiomanager.Genre
- radiomanager.GenreOutputOnly
- radiomanager.GenreRelations
- radiomanager.GenreRelationsBroadcasts
- radiomanager.GenreRelationsBroadcastsParams
- radiomanager.GenreRelationsPrograms
- radiomanager.GenreResult
- radiomanager.Group
- radiomanager.GroupDataInput
- radiomanager.GroupOutputOnly
- radiomanager.GroupRelations
- radiomanager.GroupRelationsBroadcasts
- radiomanager.GroupRelationsPrograms
- radiomanager.GroupRelationsUsers
- radiomanager.GroupRelationsUsersParams
- radiomanager.GroupResult
- radiomanager.ImportItem
- radiomanager.ImportItemAllOf
- radiomanager.InlineResponse200
- radiomanager.InlineResponse2001
- radiomanager.InlineResponse20010
- radiomanager.InlineResponse20011
- radiomanager.InlineResponse20012
- radiomanager.InlineResponse20013
- radiomanager.InlineResponse2002
- radiomanager.InlineResponse2003
- radiomanager.InlineResponse2004
- radiomanager.InlineResponse2005
- radiomanager.InlineResponse2006
- radiomanager.InlineResponse2007
- radiomanager.InlineResponse2008
- radiomanager.InlineResponse2009
- radiomanager.InlineResponse202
- radiomanager.InlineResponse2021
- radiomanager.InlineResponse400
- radiomanager.InlineResponse401
- radiomanager.InlineResponse403
- radiomanager.InlineResponse404
- radiomanager.InlineResponse422
- radiomanager.InlineResponse429
- radiomanager.InlineResponse500
- radiomanager.InviteUserData
- radiomanager.Item
- radiomanager.ItemAllOf
- radiomanager.ItemDataInput
- radiomanager.ItemInputOnly
- radiomanager.ItemOutputOnly
- radiomanager.ItemRelations
- radiomanager.ItemRelationsBlock
- radiomanager.ItemRelationsCampaign
- radiomanager.ItemRelationsContacts
- radiomanager.ItemRelationsContactsParams
- radiomanager.ItemRelationsProgram
- radiomanager.ItemRelationsTags
- radiomanager.ItemResult
- radiomanager.ItemsStopcurrentBody
- radiomanager.ModelType
- radiomanager.ModelTypeOptions
- radiomanager.ModelTypeOutputOnly
- radiomanager.ModelTypeRelations
- radiomanager.ModelTypeRelationsBroadcasts
- radiomanager.ModelTypeRelationsCampaigns
- radiomanager.ModelTypeRelationsCampaignsParams
- radiomanager.ModelTypeRelationsContacts
- radiomanager.ModelTypeRelationsItems
- radiomanager.ModelTypeRelationsPresenters
- radiomanager.ModelTypeRelationsPrograms
- radiomanager.ModelTypeResult
- radiomanager.OrderDirection
- radiomanager.PlaylistMergeBody
- radiomanager.PlaylistStructureBody
- radiomanager.PlaylistTimingBody
- radiomanager.Presenter
- radiomanager.PresenterDataInput
- radiomanager.PresenterEPGResult
- radiomanager.PresenterOutputOnly
- radiomanager.PresenterRelations
- radiomanager.PresenterRelationsBroadcasts
- radiomanager.PresenterRelationsModelType
- radiomanager.PresenterRelationsPrograms
- radiomanager.PresenterRelationsProgramsParams
- radiomanager.PresenterResult
- radiomanager.Program
- radiomanager.ProgramDataInput
- radiomanager.ProgramInputOnly
- radiomanager.ProgramInputOnlyAllOf
- radiomanager.ProgramOutputOnly
- radiomanager.ProgramRelations
- radiomanager.ProgramRelationsBlocks
- radiomanager.ProgramRelationsBroadcasts
- radiomanager.ProgramRelationsItems
- radiomanager.ProgramRelationsItemsParams
- radiomanager.ProgramRelationsPresenters
- radiomanager.ProgramRelationsTags
- radiomanager.ProgramResult
- radiomanager.StationResult
- radiomanager.StationResultStation
- radiomanager.StationResultStationStartDays
- radiomanager.Tag
- radiomanager.TagDataInput
- radiomanager.TagOutputOnly
- radiomanager.TagRelations
- radiomanager.TagRelationsBroadcasts
- radiomanager.TagRelationsBroadcastsParams
- radiomanager.TagRelationsContacts
- radiomanager.TagRelationsItems
- radiomanager.TagRelationsPrograms
- radiomanager.TagResult
- radiomanager.TextString
- radiomanager.UnusedBooleanParameter
- radiomanager.UserResult
- radiomanager.UserResultGroups
- radiomanager.UserResultParams
- radiomanager.UserResultRoles
- radiomanager.UserResultSettings
- radiomanager.VisualResult
Documentation for Authorization
API-Key
- Type: API key
- API key parameter name: api-key
- Location: HTTP header