All URIs are relative to https://radiomanager.io/api/v2
Method | HTTP request | Description |
---|---|---|
CreateContact | POST /contacts | Create contact. |
DeleteContactById | DELETE /contacts/{id} | Delete contact by id |
GetContactById | GET /contacts/{id} | Get contact by id |
ListContacts | GET /contacts | Get all contacts. |
UpdateContactByID | PATCH /contacts/{id} | Update contact by id |
PostSuccess CreateContact (ContactDataInput data)
Create contact.
Create contact.
using System;
using System.Diagnostics;
using RadioManager.Api;
using RadioManager.Client;
using RadioManager.Model;
namespace Example
{
public class CreateContactExample
{
public void main()
{
// Configure API key authorization: API Key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
var apiInstance = new ContactApi();
var data = new ContactDataInput(); // ContactDataInput | Data **(Required)**
try
{
// Create contact.
PostSuccess result = apiInstance.CreateContact(data);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ContactApi.CreateContact: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
data | ContactDataInput | Data (Required) |
[API Key](../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Success DeleteContactById (long? id)
Delete contact by id
Delete contact by id
using System;
using System.Diagnostics;
using RadioManager.Api;
using RadioManager.Client;
using RadioManager.Model;
namespace Example
{
public class DeleteContactByIdExample
{
public void main()
{
// Configure API key authorization: API Key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
var apiInstance = new ContactApi();
var id = 789; // long? | ID of Contact **(Required)**
try
{
// Delete contact by id
Success result = apiInstance.DeleteContactById(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ContactApi.DeleteContactById: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | long? | ID of Contact (Required) |
[API Key](../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ContactResult GetContactById (long? id, long? externalStationId = null)
Get contact by id
Get contact by id
using System;
using System.Diagnostics;
using RadioManager.Api;
using RadioManager.Client;
using RadioManager.Model;
namespace Example
{
public class GetContactByIdExample
{
public void main()
{
// Configure API key authorization: API Key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
var apiInstance = new ContactApi();
var id = 789; // long? | ID of Contact **(Required)**
var externalStationId = 789; // long? | Query on a different (content providing) station *(Optional)* (optional)
try
{
// Get contact by id
ContactResult result = apiInstance.GetContactById(id, externalStationId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ContactApi.GetContactById: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | long? | ID of Contact (Required) | |
externalStationId | long? | Query on a different (content providing) station (Optional) | [optional] |
[API Key](../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ContactResults ListContacts (long? page = null, long? itemId = null, long? modelTypeId = null, long? tagId = null, long? limit = null, string orderBy = null, string orderDirection = null, long? externalStationId = null)
Get all contacts.
List all contacts.
using System;
using System.Diagnostics;
using RadioManager.Api;
using RadioManager.Client;
using RadioManager.Model;
namespace Example
{
public class ListContactsExample
{
public void main()
{
// Configure API key authorization: API Key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
var apiInstance = new ContactApi();
var page = 789; // long? | Current page *(Optional)* (optional) (default to 1)
var itemId = 789; // long? | Search on Item ID *(Optional)* `(Relation)` (optional)
var modelTypeId = 789; // long? | Search on ModelType ID *(Optional)* `(Relation)` (optional)
var tagId = 789; // long? | Search on Tag ID *(Optional)* `(Relation)` (optional)
var limit = 789; // long? | Results per page *(Optional)* (optional)
var orderBy = orderBy_example; // string | Field to order the results *(Optional)* (optional)
var orderDirection = orderDirection_example; // string | Direction of ordering *(Optional)* (optional)
var externalStationId = 789; // long? | Query on a different (content providing) station *(Optional)* (optional)
try
{
// Get all contacts.
ContactResults result = apiInstance.ListContacts(page, itemId, modelTypeId, tagId, limit, orderBy, orderDirection, externalStationId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ContactApi.ListContacts: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
page | long? | Current page (Optional) | [optional] [default to 1] |
itemId | long? | Search on Item ID (Optional) `(Relation)` | [optional] |
modelTypeId | long? | Search on ModelType ID (Optional) `(Relation)` | [optional] |
tagId | long? | Search on Tag ID (Optional) `(Relation)` | [optional] |
limit | long? | Results per page (Optional) | [optional] |
orderBy | string | Field to order the results (Optional) | [optional] |
orderDirection | string | Direction of ordering (Optional) | [optional] |
externalStationId | long? | Query on a different (content providing) station (Optional) | [optional] |
[API Key](../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Success UpdateContactByID (long? id, ContactDataInput data = null)
Update contact by id
Update contact by id
using System;
using System.Diagnostics;
using RadioManager.Api;
using RadioManager.Client;
using RadioManager.Model;
namespace Example
{
public class UpdateContactByIDExample
{
public void main()
{
// Configure API key authorization: API Key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
var apiInstance = new ContactApi();
var id = 789; // long? | ID of Contact **(Required)**
var data = new ContactDataInput(); // ContactDataInput | Data *(Optional)* (optional)
try
{
// Update contact by id
Success result = apiInstance.UpdateContactByID(id, data);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ContactApi.UpdateContactByID: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | long? | ID of Contact (Required) | |
data | ContactDataInput | Data (Optional) | [optional] |
[API Key](../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]