Skip to content

Latest commit

 

History

History
122 lines (84 loc) · 4.64 KB

AlertNotificationsApi.md

File metadata and controls

122 lines (84 loc) · 4.64 KB

stcloud.AlertNotificationsApi

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

get_alert_notifications_for_app_using_post

NotificationsResponse get_alert_notifications_for_app_using_post(body, app_id)

Get alert notifications for an app

Default value of interval is 1d

Example

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)

Parameters

Name Type Description Notes
body AlertNotificationRequest Time Interval
app_id int appId

Return type

NotificationsResponse

Authorization

api_key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_alert_notifications_for_user_using_post

NotificationsResponse get_alert_notifications_for_user_using_post(body)

Get alert notifications for a user

Default value of interval is 1d

Example

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)

Parameters

Name Type Description Notes
body AlertNotificationRequest Time Interval

Return type

NotificationsResponse

Authorization

api_key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]