All URIs are relative to https://radiomanager.io/api/v2
Method | HTTP request | Description |
---|---|---|
DeleteUserById | DELETE /users/{id} | Remove user from station by Id |
GetUserById | GET /users/{id} | Get user by id |
InviteUserByMail | POST /users/invite | Invite user by mail |
ListUsers | GET /users | Get all users. |
Success DeleteUserById (long? id)
Remove user from station by Id
Remove user from station by Id
using System;
using System.Diagnostics;
using RadioManager.Api;
using RadioManager.Client;
using RadioManager.Model;
namespace Example
{
public class DeleteUserByIdExample
{
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 UserApi();
var id = 789; // long? | id of User
try
{
// Remove user from station by Id
Success result = apiInstance.DeleteUserById(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UserApi.DeleteUserById: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | long? | id of User |
[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]
UserResult GetUserById (long? id)
Get user by id
Get user by id
using System;
using System.Diagnostics;
using RadioManager.Api;
using RadioManager.Client;
using RadioManager.Model;
namespace Example
{
public class GetUserByIdExample
{
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 UserApi();
var id = 789; // long? | id of User
try
{
// Get user by id
UserResult result = apiInstance.GetUserById(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UserApi.GetUserById: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | long? | id of User |
[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]
InviteUserSuccess InviteUserByMail (InviteUserData data)
Invite user by mail
Invite user by mail
using System;
using System.Diagnostics;
using RadioManager.Api;
using RadioManager.Client;
using RadioManager.Model;
namespace Example
{
public class InviteUserByMailExample
{
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 UserApi();
var data = new InviteUserData(); // InviteUserData | Data **(Required)**
try
{
// Invite user by mail
InviteUserSuccess result = apiInstance.InviteUserByMail(data);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UserApi.InviteUserByMail: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
data | InviteUserData | 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]
UserResults ListUsers (long? page = null, long? roleId = null, long? limit = null, string orderBy = null, string orderDirection = null)
Get all users.
List all users.
using System;
using System.Diagnostics;
using RadioManager.Api;
using RadioManager.Client;
using RadioManager.Model;
namespace Example
{
public class ListUsersExample
{
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 UserApi();
var page = 789; // long? | Current page *(Optional)* (optional) (default to 1)
var roleId = 789; // long? | Search on Role ID *(Optional)* (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)
try
{
// Get all users.
UserResults result = apiInstance.ListUsers(page, roleId, limit, orderBy, orderDirection);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UserApi.ListUsers: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
page | long? | Current page (Optional) | [optional] [default to 1] |
roleId | long? | Search on Role ID (Optional) | [optional] |
limit | long? | Results per page (Optional) | [optional] |
orderBy | string | Field to order the results (Optional) | [optional] |
orderDirection | string | Direction of ordering (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]