All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
get_alert_notifications_for_app_using_post | POST /users-web/api/v3/apps/{appId}/notifications/alerts | Get alert notifications for an app |
get_alert_notifications_for_user_using_post | POST /users-web/api/v3/notifications/alerts | Get alert notifications for a user |
NotificationsResponse get_alert_notifications_for_app_using_post(body, app_id)
Get alert notifications for an app
Default value of interval is 1d
from __future__ import print_function
import time
import stcloud
from stcloud.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = stcloud.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = stcloud.AlertNotificationsApi(stcloud.ApiClient(configuration))
body = stcloud.AlertNotificationRequest() # AlertNotificationRequest | Time Interval
app_id = 789 # int | appId
try:
# Get alert notifications for an app
api_response = api_instance.get_alert_notifications_for_app_using_post(body, app_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AlertNotificationsApi->get_alert_notifications_for_app_using_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | AlertNotificationRequest | Time Interval | |
app_id | int | appId |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NotificationsResponse get_alert_notifications_for_user_using_post(body)
Get alert notifications for a user
Default value of interval is 1d
from __future__ import print_function
import time
import stcloud
from stcloud.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = stcloud.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = stcloud.AlertNotificationsApi(stcloud.ApiClient(configuration))
body = stcloud.AlertNotificationRequest() # AlertNotificationRequest | Time Interval
try:
# Get alert notifications for a user
api_response = api_instance.get_alert_notifications_for_user_using_post(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AlertNotificationsApi->get_alert_notifications_for_user_using_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | AlertNotificationRequest | Time Interval |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]