1
- # SematextCloud ::AlertNotificationsApi
1
+ # stcloud ::AlertNotificationsApi
2
2
3
- All URIs are relative to * https://localhost *
3
+ All URIs are relative to * / *
4
4
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 |
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 |
9
9
10
-
11
- # ** get_alert_notifications_for_app_using_post**
12
- > GenericApiResponse get_alert_notifications_for_app_using_post(app_id, time_interval)
10
+ # ** get_alert_notifications_for_app_using_post1**
11
+ > NotificationsResponse get_alert_notifications_for_app_using_post1(bodyapp_id)
13
12
14
13
Get alert notifications for an app
15
14
@@ -18,41 +17,39 @@ Default value of interval is 1d
18
17
### Example
19
18
``` ruby
20
19
# load the gem
21
- require ' SematextCloud '
20
+ require ' stcloud '
22
21
# setup authorization
23
- SematextCloud .configure do |config |
22
+ stcloud .configure do |config |
24
23
# Configure API key authorization: api_key
25
24
config.api_key[' Authorization' ] = ' YOUR API KEY'
26
25
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
27
26
# config.api_key_prefix['Authorization'] = 'Bearer'
28
27
end
29
28
30
- api_instance = SematextCloud ::AlertNotificationsApi .new
31
-
29
+ api_instance = stcloud ::AlertNotificationsApi .new
30
+ body = stcloud:: AlertNotificationRequest . new # AlertNotificationRequest | Time Interval
32
31
app_id = 789 # Integer | appId
33
32
34
- time_interval = SematextCloud ::AlertNotificationRequest .new # AlertNotificationRequest | Time Interval
35
-
36
33
37
34
begin
38
35
# Get alert notifications for an app
39
- result = api_instance.get_alert_notifications_for_app_using_post(app_id, time_interval )
36
+ result = api_instance.get_alert_notifications_for_app_using_post1(bodyapp_id )
40
37
p result
41
- rescue SematextCloud ::ApiError => e
42
- puts " Exception when calling AlertNotificationsApi->get_alert_notifications_for_app_using_post : #{ e } "
38
+ rescue stcloud ::ApiError => e
39
+ puts " Exception when calling AlertNotificationsApi->get_alert_notifications_for_app_using_post1 : #{ e } "
43
40
end
44
41
```
45
42
46
43
### Parameters
47
44
48
- | Name | Type | Description | Notes |
49
- | ----------------- | ----------------------------------------------------------- | ------------- | ----- |
50
- | ** app_id ** | ** Integer ** | appId |
51
- | ** time_interval ** | [ ** AlertNotificationRequest ** ] ( AlertNotificationRequest.md ) | Time Interval |
45
+ | Name | Type | Description | Notes |
46
+ | ---------- | ----------------------------------------------------------- | ------------- | ----- |
47
+ | ** body ** | [ ** AlertNotificationRequest ** ] ( AlertNotificationRequest.md ) | Time Interval |
48
+ | ** app_id ** | ** Integer ** | appId |
52
49
53
50
### Return type
54
51
55
- [ ** GenericApiResponse ** ] ( GenericApiResponse .md)
52
+ [ ** NotificationsResponse ** ] ( NotificationsResponse .md)
56
53
57
54
### Authorization
58
55
65
62
66
63
67
64
68
- # ** get_alert_notifications_for_user_using_post **
69
- > GenericApiResponse get_alert_notifications_for_user_using_post(time_interval )
65
+ # ** get_alert_notifications_for_user_using_post1 **
66
+ > NotificationsResponse get_alert_notifications_for_user_using_post1(body )
70
67
71
68
Get alert notifications for a user
72
69
@@ -75,38 +72,37 @@ Default value of interval is 1d
75
72
### Example
76
73
``` ruby
77
74
# load the gem
78
- require ' SematextCloud '
75
+ require ' stcloud '
79
76
# setup authorization
80
- SematextCloud .configure do |config |
77
+ stcloud .configure do |config |
81
78
# Configure API key authorization: api_key
82
79
config.api_key[' Authorization' ] = ' YOUR API KEY'
83
80
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
84
81
# config.api_key_prefix['Authorization'] = 'Bearer'
85
82
end
86
83
87
- api_instance = SematextCloud ::AlertNotificationsApi .new
88
-
89
- time_interval = SematextCloud ::AlertNotificationRequest .new # AlertNotificationRequest | Time Interval
84
+ api_instance = stcloud::AlertNotificationsApi .new
85
+ body = stcloud::AlertNotificationRequest .new # AlertNotificationRequest | Time Interval
90
86
91
87
92
88
begin
93
89
# Get alert notifications for a user
94
- result = api_instance.get_alert_notifications_for_user_using_post(time_interval )
90
+ result = api_instance.get_alert_notifications_for_user_using_post1(body )
95
91
p result
96
- rescue SematextCloud ::ApiError => e
97
- puts " Exception when calling AlertNotificationsApi->get_alert_notifications_for_user_using_post : #{ e } "
92
+ rescue stcloud ::ApiError => e
93
+ puts " Exception when calling AlertNotificationsApi->get_alert_notifications_for_user_using_post1 : #{ e } "
98
94
end
99
95
```
100
96
101
97
### Parameters
102
98
103
- | Name | Type | Description | Notes |
104
- | ----------------- | ----------------------------------------------------------- | ------------- | ----- |
105
- | ** time_interval ** | [ ** AlertNotificationRequest** ] ( AlertNotificationRequest.md ) | Time Interval |
99
+ | Name | Type | Description | Notes |
100
+ | -------- | ----------------------------------------------------------- | ------------- | ----- |
101
+ | ** body ** | [ ** AlertNotificationRequest** ] ( AlertNotificationRequest.md ) | Time Interval |
106
102
107
103
### Return type
108
104
109
- [ ** GenericApiResponse ** ] ( GenericApiResponse .md)
105
+ [ ** NotificationsResponse ** ] ( NotificationsResponse .md)
110
106
111
107
### Authorization
112
108
0 commit comments