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. |
list[Announcement] announcement_get(columns=columns)
Get site announcements.
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AnnouncementApi()
columns = 'columns_example' # str | Array of column names to fetch. If omitted, will return all columns. (optional)
try:
# Get site announcements.
api_response = api_instance.announcement_get(columns=columns)
pprint(api_response)
except ApiException as e:
print "Exception when calling AnnouncementApi->announcement_get: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
columns | str | 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
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Announcement] announcement_get_urgent()
Get urgent (banner) announcements.
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AnnouncementApi()
try:
# Get urgent (banner) announcements.
api_response = api_instance.announcement_get_urgent()
pprint(api_response)
except ApiException as e:
print "Exception when calling AnnouncementApi->announcement_get_urgent: %s\n" % e
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
[Back to top] [Back to API list] [Back to Model list] [Back to README]