All URIs are relative to https://radiomanager.io/api/v2
Method | HTTP request | Description |
---|---|---|
create_contact | POST /contacts | Create contact. |
delete_contact_by_id | DELETE /contacts/{id} | Delete contact by id |
get_contact_by_id | GET /contacts/{id} | Get contact by id |
list_contacts | GET /contacts | Get all contacts. |
update_contact_by_id | PATCH /contacts/{id} | Update contact by id |
PostSuccess create_contact(data)
Create contact.
Create contact.
# 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::ContactApi.new
data = RadioManagerClient::ContactDataInput.new # ContactDataInput | Data **(Required)**
begin
#Create contact.
result = api_instance.create_contact(data)
p result
rescue RadioManagerClient::ApiError => e
puts "Exception when calling ContactApi->create_contact: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
data | ContactDataInput | Data (Required) |
[API Key](../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
Success delete_contact_by_id(id)
Delete contact by id
Delete contact by id
# 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::ContactApi.new
id = 789 # Integer | ID of Contact **(Required)**
begin
#Delete contact by id
result = api_instance.delete_contact_by_id(id)
p result
rescue RadioManagerClient::ApiError => e
puts "Exception when calling ContactApi->delete_contact_by_id: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ID of Contact (Required) |
[API Key](../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
ContactResult get_contact_by_id(id, opts)
Get contact by id
Get contact by id
# 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::ContactApi.new
id = 789 # Integer | ID of Contact **(Required)**
opts = {
_external_station_id: 789 # Integer | Query on a different (content providing) station *(Optional)*
}
begin
#Get contact by id
result = api_instance.get_contact_by_id(id, opts)
p result
rescue RadioManagerClient::ApiError => e
puts "Exception when calling ContactApi->get_contact_by_id: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ID of Contact (Required) | |
_external_station_id | Integer | Query on a different (content providing) station (Optional) | [optional] |
[API Key](../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
ContactResults list_contacts(opts)
Get all contacts.
List all contacts.
# 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::ContactApi.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)*
_external_station_id: 789 # Integer | Query on a different (content providing) station *(Optional)*
}
begin
#Get all contacts.
result = api_instance.list_contacts(opts)
p result
rescue RadioManagerClient::ApiError => e
puts "Exception when calling ContactApi->list_contacts: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | Current page (Optional) | [optional] [default to 1] |
item_id | Integer | Search on Item ID (Optional) `(Relation)` | [optional] |
model_type_id | Integer | Search on ModelType ID (Optional) `(Relation)` | [optional] |
tag_id | Integer | Search on Tag ID (Optional) `(Relation)` | [optional] |
limit | Integer | Results per page (Optional) | [optional] |
order_by | String | Field to order the results (Optional) | [optional] |
order_direction | String | Direction of ordering (Optional) | [optional] |
_external_station_id | Integer | Query on a different (content providing) station (Optional) | [optional] |
[API Key](../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
Success update_contact_by_id(id, opts)
Update contact by id
Update contact by id
# 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::ContactApi.new
id = 789 # Integer | ID of Contact **(Required)**
opts = {
data: RadioManagerClient::ContactDataInput.new # ContactDataInput | Data *(Optional)*
}
begin
#Update contact by id
result = api_instance.update_contact_by_id(id, opts)
p result
rescue RadioManagerClient::ApiError => e
puts "Exception when calling ContactApi->update_contact_by_id: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | ID of Contact (Required) | |
data | ContactDataInput | Data (Optional) | [optional] |
[API Key](../README.md#API Key)
- Content-Type: application/json
- Accept: application/json