All URIs are relative to https://radiomanager.io/api/v2
Method | HTTP request | Description |
---|---|---|
createTag | POST /tags | Create tag. |
deleteTagById | DELETE /tags/{id} | Delete tag by id |
getTagById | GET /tags/{id} | Get tags by id |
listTags | GET /tags | Get a list of all the tags currently in your station. |
updateTagByID | PATCH /tags/{id} | Update tag by id |
InlineResponse2002 createTag(tagDataInput)
Create tag.
Create tag.
import radiomanager from 'radiomanager';
let defaultClient = radiomanager.ApiClient.instance;
// Configure API key authorization: API-Key
let 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 = 'Token';
let apiInstance = new radiomanager.TagApi();
let tagDataInput = new radiomanager.TagDataInput(); // TagDataInput | Data **(Required)**
apiInstance.createTag(tagDataInput).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
tagDataInput | TagDataInput | Data (Required) |
- Content-Type: application/json
- Accept: application/json
InlineResponse202 deleteTagById(id)
Delete tag by id
Delete tag by id
import radiomanager from 'radiomanager';
let defaultClient = radiomanager.ApiClient.instance;
// Configure API key authorization: API-Key
let 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 = 'Token';
let apiInstance = new radiomanager.TagApi();
let id = 789; // Number | ID of Tag **(Required)**
apiInstance.deleteTagById(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | ID of Tag (Required) |
- Content-Type: Not defined
- Accept: application/json
TagResult getTagById(id)
Get tags by id
Get tags by id
import radiomanager from 'radiomanager';
let defaultClient = radiomanager.ApiClient.instance;
// Configure API key authorization: API-Key
let 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 = 'Token';
let apiInstance = new radiomanager.TagApi();
let id = 789; // Number | ID of Tag **(Required)**
apiInstance.getTagById(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | ID of Tag (Required) |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20012 listTags(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.
import radiomanager from 'radiomanager';
let defaultClient = radiomanager.ApiClient.instance;
// Configure API key authorization: API-Key
let 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 = 'Token';
let apiInstance = new radiomanager.TagApi();
let opts = {
'programId': 789, // Number | Search on Program ID *(Optional)* `(Relation)`
'itemId': 789, // Number | Search on Item ID *(Optional)* `(Relation)`
'broadcastId': 789, // Number | Search on Broadcast ID *(Optional)* `(Relation)`
'contactId': 789, // Number | Search on Contact ID *(Optional)* `(Relation)`
'page': 1, // Number | Current page *(Optional)*
'limit': 789, // Number | Results per page *(Optional)*
'orderBy': "orderBy_example", // String | Field to order the results *(Optional)*
'orderDirection': "orderDirection_example", // String | Direction of ordering *(Optional)*
'externalStationId': 789 // Number | Query on a different (content providing) station *(Optional)*
};
apiInstance.listTags(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
programId | Number | Search on Program ID (Optional) `(Relation)` | [optional] |
itemId | Number | Search on Item ID (Optional) `(Relation)` | [optional] |
broadcastId | Number | Search on Broadcast ID (Optional) `(Relation)` | [optional] |
contactId | Number | Search on Contact ID (Optional) `(Relation)` | [optional] |
page | Number | Current page (Optional) | [optional] [default to 1] |
limit | Number | Results per page (Optional) | [optional] |
orderBy | String | Field to order the results (Optional) | [optional] |
orderDirection | String | Direction of ordering (Optional) | [optional] |
externalStationId | Number | Query on a different (content providing) station (Optional) | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse202 updateTagByID(id, tagDataInput)
Update tag by id
Update tag by id
import radiomanager from 'radiomanager';
let defaultClient = radiomanager.ApiClient.instance;
// Configure API key authorization: API-Key
let 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 = 'Token';
let apiInstance = new radiomanager.TagApi();
let id = 789; // Number | ID of Tag **(Required)**
let tagDataInput = new radiomanager.TagDataInput(); // TagDataInput | Data *(Optional)*
apiInstance.updateTagByID(id, tagDataInput).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | ID of Tag (Required) | |
tagDataInput | TagDataInput | Data (Optional) |
- Content-Type: application/json
- Accept: application/json