All URIs are relative to https://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
announcement_get | GET /announcement | Get site announcements. |
announcement_get_urgent | GET /announcement/urgent | Get urgent (banner) announcements. |
Array<Announcement> announcement_get(opts)
Get site announcements.
# load the gem
require 'swagger_client'
api_instance = SwaggerClient::AnnouncementApi.new
opts = {
columns: 'columns_example' # String | Array of column names to fetch. If omitted, will return all columns.
}
begin
#Get site announcements.
result = api_instance.announcement_get(opts)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling AnnouncementApi->announcement_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
columns | String | Array of column names to fetch. If omitted, will return all columns. | [optional] |
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
Array<Announcement> announcement_get_urgent
Get urgent (banner) announcements.
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: apiKey
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'
# Configure API key authorization: apiNonce
config.api_key['api-nonce'] = '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-nonce'] = 'Bearer'
# Configure API key authorization: apiSignature
config.api_key['api-signature'] = '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-signature'] = 'Bearer'
end
api_instance = SwaggerClient::AnnouncementApi.new
begin
#Get urgent (banner) announcements.
result = api_instance.announcement_get_urgent
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling AnnouncementApi->announcement_get_urgent: #{e}"
end
This endpoint does not need any parameter.
apiKey, apiNonce, apiSignature
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript