|
1 |
| -# stcloud::AlertNotificationsApi |
| 1 | +# SematextCloud::AlertNotificationsApi |
2 | 2 |
|
3 | 3 | All URIs are relative to */*
|
4 | 4 |
|
5 |
| -| Method | HTTP request | Description | |
6 |
| -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ---------------------------------- | |
7 |
| -| [**get_alert_notifications_for_app_using_post1**](AlertNotificationsApi.md#get_alert_notifications_for_app_using_post1) | **POST** /users-web/api/v3/apps/{appId}/notifications/alerts | Get alert notifications for an app | |
8 |
| -| [**get_alert_notifications_for_user_using_post1**](AlertNotificationsApi.md#get_alert_notifications_for_user_using_post1) | **POST** /users-web/api/v3/notifications/alerts | Get alert notifications for a user | |
| 5 | +| Method | HTTP request | Description | |
| 6 | +| ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ---------------------------------- | |
| 7 | +| [**get_alert_notifications_for_app_using_post**](AlertNotificationsApi.md#get_alert_notifications_for_app_using_post) | **POST** /users-web/api/v3/apps/{appId}/notifications/alerts | Get alert notifications for an app | |
| 8 | +| [**get_alert_notifications_for_user_using_post**](AlertNotificationsApi.md#get_alert_notifications_for_user_using_post) | **POST** /users-web/api/v3/notifications/alerts | Get alert notifications for a user | |
9 | 9 |
|
10 |
| -# **get_alert_notifications_for_app_using_post1** |
11 |
| -> NotificationsResponse get_alert_notifications_for_app_using_post1(bodyapp_id) |
| 10 | +# **get_alert_notifications_for_app_using_post** |
| 11 | + |
| 12 | +> NotificationsResponse get_alert_notifications_for_app_using_post(bodyapp_id) |
12 | 13 |
|
13 | 14 | Get alert notifications for an app
|
14 | 15 |
|
15 | 16 | Default value of interval is 1d
|
16 | 17 |
|
17 | 18 | ### Example
|
| 19 | + |
18 | 20 | ```ruby
|
19 | 21 | # load the gem
|
20 |
| -require 'stcloud' |
| 22 | +require 'SematextCloud' |
21 | 23 | # setup authorization
|
22 |
| -stcloud.configure do |config| |
| 24 | +SematextCloud.configure do |config| |
23 | 25 | # Configure API key authorization: api_key
|
24 | 26 | config.api_key['Authorization'] = 'YOUR API KEY'
|
25 | 27 | # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
26 | 28 | #config.api_key_prefix['Authorization'] = 'Bearer'
|
27 | 29 | end
|
28 | 30 |
|
29 |
| -api_instance = stcloud::AlertNotificationsApi.new |
30 |
| -body = stcloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval |
| 31 | +api_instance = SematextCloud::AlertNotificationsApi.new |
| 32 | +body = SematextCloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval |
31 | 33 | app_id = 789 # Integer | appId
|
32 | 34 |
|
33 | 35 |
|
34 | 36 | begin
|
35 | 37 | #Get alert notifications for an app
|
36 |
| - result = api_instance.get_alert_notifications_for_app_using_post1(bodyapp_id) |
| 38 | + result = api_instance.get_alert_notifications_for_app_using_post(bodyapp_id) |
37 | 39 | p result
|
38 |
| -rescue stcloud::ApiError => e |
39 |
| - puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_app_using_post1: #{e}" |
| 40 | +rescue SematextCloud::ApiError => e |
| 41 | + puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_app_using_post: #{e}" |
40 | 42 | end
|
41 | 43 | ```
|
42 | 44 |
|
|
57 | 59 |
|
58 | 60 | ### HTTP request headers
|
59 | 61 |
|
60 |
| - - **Content-Type**: application/json |
61 |
| - - **Accept**: application/json |
| 62 | +- **Content-Type**: application/json |
| 63 | +- **Accept**: application/json |
62 | 64 |
|
| 65 | +# **get_alert_notifications_for_user_using_post** |
63 | 66 |
|
64 |
| - |
65 |
| -# **get_alert_notifications_for_user_using_post1** |
66 |
| -> NotificationsResponse get_alert_notifications_for_user_using_post1(body) |
| 67 | +> NotificationsResponse get_alert_notifications_for_user_using_post(body) |
67 | 68 |
|
68 | 69 | Get alert notifications for a user
|
69 | 70 |
|
70 | 71 | Default value of interval is 1d
|
71 | 72 |
|
72 | 73 | ### Example
|
| 74 | + |
73 | 75 | ```ruby
|
74 | 76 | # load the gem
|
75 |
| -require 'stcloud' |
| 77 | +require 'SematextCloud' |
76 | 78 | # setup authorization
|
77 |
| -stcloud.configure do |config| |
| 79 | +SematextCloud.configure do |config| |
78 | 80 | # Configure API key authorization: api_key
|
79 | 81 | config.api_key['Authorization'] = 'YOUR API KEY'
|
80 | 82 | # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
81 | 83 | #config.api_key_prefix['Authorization'] = 'Bearer'
|
82 | 84 | end
|
83 | 85 |
|
84 |
| -api_instance = stcloud::AlertNotificationsApi.new |
85 |
| -body = stcloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval |
| 86 | +api_instance = SematextCloud::AlertNotificationsApi.new |
| 87 | +body = SematextCloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval |
86 | 88 |
|
87 | 89 |
|
88 | 90 | begin
|
89 | 91 | #Get alert notifications for a user
|
90 |
| - result = api_instance.get_alert_notifications_for_user_using_post1(body) |
| 92 | + result = api_instance.get_alert_notifications_for_user_using_post(body) |
91 | 93 | p result
|
92 |
| -rescue stcloud::ApiError => e |
93 |
| - puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_user_using_post1: #{e}" |
| 94 | +rescue SematextCloud::ApiError => e |
| 95 | + puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_user_using_post: #{e}" |
94 | 96 | end
|
95 | 97 | ```
|
96 | 98 |
|
|
110 | 112 |
|
111 | 113 | ### HTTP request headers
|
112 | 114 |
|
113 |
| - - **Content-Type**: application/json |
114 |
| - - **Accept**: application/json |
| 115 | +- **Content-Type**: application/json |
| 116 | +- **Accept**: application/json |
0 commit comments