notifo-io 1.0.1.1 → 1.0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +205 -4
- data/docs/AppDetailsDto.md +0 -8
- data/docs/AppIdMediaBody.md +7 -0
- data/docs/AppsApi.md +188 -2
- data/docs/AuthorizationApi.md +121 -0
- data/docs/ConfigsApi.md +1 -1
- data/docs/ConfiguredIntegrationDto.md +12 -0
- data/docs/ConfiguredIntegrationsDto.md +8 -0
- data/docs/CreateIntegrationDto.md +11 -0
- data/docs/EventDto.md +1 -0
- data/docs/EventsApi.md +45 -1
- data/docs/IntegrationCreatedDto.md +8 -0
- data/docs/IntegrationDefinitionDto.md +11 -0
- data/docs/IntegrationProperties.md +6 -0
- data/docs/IntegrationPropertyDto.md +17 -0
- data/docs/IntegrationPropertyType.md +6 -0
- data/docs/IntegrationStatus.md +6 -0
- data/docs/ListResponseDtoOfMobilePushTokenDto.md +8 -0
- data/docs/ListResponseDtoOfNotificationDto.md +8 -0
- data/docs/LogsApi.md +1 -1
- data/docs/MediaApi.md +1 -1
- data/docs/MobileDeviceType.md +6 -0
- data/docs/MobilePushApi.md +135 -0
- data/docs/MobilePushTokenDto.md +8 -0
- data/docs/NotificationDto.md +21 -0
- data/docs/NotificationsApi.md +141 -0
- data/docs/PublishDto.md +2 -0
- data/docs/RegisterMobileTokenDto.md +8 -0
- data/docs/TemplatesApi.md +1 -1
- data/docs/TopicsApi.md +1 -1
- data/docs/TrackNotificationDto.md +10 -0
- data/docs/UpdateIntegrationDto.md +10 -0
- data/docs/UpsertUserDto.md +1 -0
- data/docs/UserApi.md +1 -1
- data/docs/UserDto.md +3 -0
- data/docs/UserInfoApi.md +83 -0
- data/docs/UsersApi.md +1 -1
- data/lib/notifo.rb +23 -3
- data/lib/notifo/api/apps_api.rb +246 -2
- data/lib/notifo/api/authorization_api.rb +158 -0
- data/lib/notifo/api/configs_api.rb +1 -1
- data/lib/notifo/api/events_api.rb +57 -1
- data/lib/notifo/api/logs_api.rb +1 -1
- data/lib/notifo/api/media_api.rb +1 -1
- data/lib/notifo/api/mobile_push_api.rb +178 -0
- data/lib/notifo/api/notifications_api.rb +181 -0
- data/lib/notifo/api/templates_api.rb +1 -1
- data/lib/notifo/api/topics_api.rb +1 -1
- data/lib/notifo/api/user_api.rb +1 -1
- data/lib/notifo/api/user_info_api.rb +112 -0
- data/lib/notifo/api/users_api.rb +1 -1
- data/lib/notifo/api_client.rb +1 -1
- data/lib/notifo/api_error.rb +1 -1
- data/lib/notifo/configuration.rb +3 -3
- data/lib/notifo/models/add_allowed_topic_dto.rb +1 -1
- data/lib/notifo/models/add_contributor_dto.rb +1 -1
- data/lib/notifo/models/app_contributor_dto.rb +1 -1
- data/lib/notifo/models/app_details_dto.rb +3 -96
- data/lib/notifo/models/app_dto.rb +1 -1
- data/lib/notifo/models/app_id_media_body.rb +207 -0
- data/lib/notifo/models/configured_integration_dto.rb +271 -0
- data/lib/notifo/models/configured_integrations_dto.rb +231 -0
- data/lib/notifo/models/confirm_mode.rb +1 -1
- data/lib/notifo/models/create_email_template_dto.rb +1 -1
- data/lib/notifo/models/create_integration_dto.rb +257 -0
- data/lib/notifo/models/email_template_dto.rb +2 -1
- data/lib/notifo/models/email_templates_dto.rb +1 -1
- data/lib/notifo/models/error_dto.rb +5 -1
- data/lib/notifo/models/event_dto.rb +18 -5
- data/lib/notifo/models/event_properties.rb +1 -1
- data/lib/notifo/models/integration_created_dto.rb +226 -0
- data/lib/notifo/models/integration_definition_dto.rb +272 -0
- data/lib/notifo/models/integration_properties.rb +201 -0
- data/lib/notifo/models/integration_property_dto.rb +319 -0
- data/lib/notifo/models/integration_property_type.rb +31 -0
- data/lib/notifo/models/integration_status.rb +29 -0
- data/lib/notifo/models/iso_day_of_week.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_event_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_media_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_mobile_push_token_dto.rb +229 -0
- data/lib/notifo/models/list_response_dto_of_notification_dto.rb +229 -0
- data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_template_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_topic_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_user_dto.rb +1 -1
- data/lib/notifo/models/localized_text.rb +1 -1
- data/lib/notifo/models/log_entry_dto.rb +1 -1
- data/lib/notifo/models/media_dto.rb +1 -1
- data/lib/notifo/models/media_metadata.rb +1 -1
- data/lib/notifo/models/media_type.rb +1 -1
- data/lib/notifo/models/mobile_device_type.rb +29 -0
- data/lib/notifo/models/mobile_push_token_dto.rb +221 -0
- data/lib/notifo/models/notification_dto.rb +386 -0
- data/lib/notifo/models/notification_formatting_dto.rb +1 -1
- data/lib/notifo/models/notification_send.rb +1 -1
- data/lib/notifo/models/notification_setting_dto.rb +2 -1
- data/lib/notifo/models/profile_dto.rb +4 -1
- data/lib/notifo/models/publish_dto.rb +30 -5
- data/lib/notifo/models/publish_many_dto.rb +1 -1
- data/lib/notifo/models/register_mobile_token_dto.rb +221 -0
- data/lib/notifo/models/resize_mode.rb +1 -1
- data/lib/notifo/models/scheduling_dto.rb +2 -1
- data/lib/notifo/models/scheduling_type.rb +1 -1
- data/lib/notifo/models/subscription_dto.rb +2 -1
- data/lib/notifo/models/template_dto.rb +1 -1
- data/lib/notifo/models/topic_dto.rb +1 -1
- data/lib/notifo/models/track_notification_dto.rb +243 -0
- data/lib/notifo/models/update_integration_dto.rb +242 -0
- data/lib/notifo/models/update_profile_dto.rb +7 -1
- data/lib/notifo/models/upsert_app_dto.rb +11 -1
- data/lib/notifo/models/upsert_template_dto.rb +2 -1
- data/lib/notifo/models/upsert_templates_dto.rb +1 -1
- data/lib/notifo/models/upsert_user_dto.rb +21 -2
- data/lib/notifo/models/upsert_users_dto.rb +1 -1
- data/lib/notifo/models/user_dto.rb +48 -2
- data/lib/notifo/version.rb +1 -1
- data/notifo-io-1.0.1.1.gem +0 -0
- data/notifo.gemspec +2 -2
- data/spec/api/authorization_api_spec.rb +61 -0
- data/spec/api/mobile_push_api_spec.rb +66 -0
- data/spec/api/notifications_api_spec.rb +68 -0
- data/spec/api/user_info_api_spec.rb +52 -0
- data/spec/models/app_id_media_body_spec.rb +40 -0
- data/spec/models/configured_integration_dto_spec.rb +70 -0
- data/spec/models/configured_integrations_dto_spec.rb +46 -0
- data/spec/models/create_integration_dto_spec.rb +64 -0
- data/spec/models/integration_created_dto_spec.rb +46 -0
- data/spec/models/integration_definition_dto_spec.rb +64 -0
- data/spec/models/integration_properties_spec.rb +34 -0
- data/spec/models/integration_property_dto_spec.rb +100 -0
- data/spec/models/integration_property_type_spec.rb +34 -0
- data/spec/models/integration_status_spec.rb +34 -0
- data/spec/models/list_response_dto_of_mobile_push_token_dto_spec.rb +46 -0
- data/spec/models/list_response_dto_of_notification_dto_spec.rb +46 -0
- data/spec/models/mobile_device_type_spec.rb +34 -0
- data/spec/models/mobile_push_token_dto_spec.rb +46 -0
- data/spec/models/notification_dto_spec.rb +124 -0
- data/spec/models/register_mobile_token_dto_spec.rb +46 -0
- data/spec/models/track_notification_dto_spec.rb +58 -0
- data/spec/models/update_integration_dto_spec.rb +58 -0
- metadata +91 -2
@@ -0,0 +1,121 @@
|
|
1
|
+
# Notifo::AuthorizationApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://notifo.easierlife.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**authorization_authorize**](AuthorizationApi.md#authorization_authorize) | **GET** /connect/authorize |
|
8
|
+
[**authorization_exchange**](AuthorizationApi.md#authorization_exchange) | **POST** /connect/token |
|
9
|
+
[**authorization_logout**](AuthorizationApi.md#authorization_logout) | **GET** /connect/logout |
|
10
|
+
|
11
|
+
# **authorization_authorize**
|
12
|
+
> authorization_authorize
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
### Example
|
17
|
+
```ruby
|
18
|
+
# load the gem
|
19
|
+
require 'notifo'
|
20
|
+
|
21
|
+
api_instance = Notifo::AuthorizationApi.new
|
22
|
+
|
23
|
+
begin
|
24
|
+
api_instance.authorization_authorize
|
25
|
+
rescue Notifo::ApiError => e
|
26
|
+
puts "Exception when calling AuthorizationApi->authorization_authorize: #{e}"
|
27
|
+
end
|
28
|
+
```
|
29
|
+
|
30
|
+
### Parameters
|
31
|
+
This endpoint does not need any parameter.
|
32
|
+
|
33
|
+
### Return type
|
34
|
+
|
35
|
+
nil (empty response body)
|
36
|
+
|
37
|
+
### Authorization
|
38
|
+
|
39
|
+
No authorization required
|
40
|
+
|
41
|
+
### HTTP request headers
|
42
|
+
|
43
|
+
- **Content-Type**: Not defined
|
44
|
+
- **Accept**: application/json
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
# **authorization_exchange**
|
49
|
+
> authorization_exchange
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
### Example
|
54
|
+
```ruby
|
55
|
+
# load the gem
|
56
|
+
require 'notifo'
|
57
|
+
|
58
|
+
api_instance = Notifo::AuthorizationApi.new
|
59
|
+
|
60
|
+
begin
|
61
|
+
api_instance.authorization_exchange
|
62
|
+
rescue Notifo::ApiError => e
|
63
|
+
puts "Exception when calling AuthorizationApi->authorization_exchange: #{e}"
|
64
|
+
end
|
65
|
+
```
|
66
|
+
|
67
|
+
### Parameters
|
68
|
+
This endpoint does not need any parameter.
|
69
|
+
|
70
|
+
### Return type
|
71
|
+
|
72
|
+
nil (empty response body)
|
73
|
+
|
74
|
+
### Authorization
|
75
|
+
|
76
|
+
No authorization required
|
77
|
+
|
78
|
+
### HTTP request headers
|
79
|
+
|
80
|
+
- **Content-Type**: Not defined
|
81
|
+
- **Accept**: application/json
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
# **authorization_logout**
|
86
|
+
> authorization_logout
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
### Example
|
91
|
+
```ruby
|
92
|
+
# load the gem
|
93
|
+
require 'notifo'
|
94
|
+
|
95
|
+
api_instance = Notifo::AuthorizationApi.new
|
96
|
+
|
97
|
+
begin
|
98
|
+
api_instance.authorization_logout
|
99
|
+
rescue Notifo::ApiError => e
|
100
|
+
puts "Exception when calling AuthorizationApi->authorization_logout: #{e}"
|
101
|
+
end
|
102
|
+
```
|
103
|
+
|
104
|
+
### Parameters
|
105
|
+
This endpoint does not need any parameter.
|
106
|
+
|
107
|
+
### Return type
|
108
|
+
|
109
|
+
nil (empty response body)
|
110
|
+
|
111
|
+
### Authorization
|
112
|
+
|
113
|
+
No authorization required
|
114
|
+
|
115
|
+
### HTTP request headers
|
116
|
+
|
117
|
+
- **Content-Type**: Not defined
|
118
|
+
- **Accept**: application/json
|
119
|
+
|
120
|
+
|
121
|
+
|
data/docs/ConfigsApi.md
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
# Notifo::ConfiguredIntegrationDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**type** | **String** | The integration type. |
|
7
|
+
**properties** | [**IntegrationProperties**](IntegrationProperties.md) | |
|
8
|
+
**enabled** | **BOOLEAN** | True when enabled. | [optional]
|
9
|
+
**test** | **BOOLEAN** | True or false when only used for test or production mode. | [optional]
|
10
|
+
**priority** | **Integer** | The priority in which order the integrations must run. | [optional]
|
11
|
+
**status** | [**IntegrationStatus**](IntegrationStatus.md) | |
|
12
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Notifo::ConfiguredIntegrationsDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**configured** | [**Hash<String, ConfiguredIntegrationDto>**](ConfiguredIntegrationDto.md) | The configured integrations. |
|
7
|
+
**supported** | [**Hash<String, IntegrationDefinitionDto>**](IntegrationDefinitionDto.md) | The supported integrations. |
|
8
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Notifo::CreateIntegrationDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**type** | **String** | The integration type. |
|
7
|
+
**properties** | [**IntegrationProperties**](IntegrationProperties.md) | |
|
8
|
+
**enabled** | **BOOLEAN** | True when enabled. | [optional]
|
9
|
+
**test** | **BOOLEAN** | True when used for test events. | [optional]
|
10
|
+
**priority** | **Integer** | The priority in which order the integrations must run. | [optional]
|
11
|
+
|
data/docs/EventDto.md
CHANGED
@@ -15,4 +15,5 @@ Name | Type | Description | Notes
|
|
15
15
|
**scheduling** | [**SchedulingDto**](SchedulingDto.md) | | [optional]
|
16
16
|
**counters** | **Hash<String, Integer>** | The statistics counters. |
|
17
17
|
**silent** | **BOOLEAN** | True when silent. |
|
18
|
+
**time_to_live_in_seconds** | **Integer** | The time to live in seconds. | [optional]
|
18
19
|
|
data/docs/EventsApi.md
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
# Notifo::EventsApi
|
2
2
|
|
3
|
-
All URIs are relative to *https://
|
3
|
+
All URIs are relative to *https://notifo.easierlife.com*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**events_get_events**](EventsApi.md#events_get_events) | **GET** /api/apps/{appId}/events | Query events.
|
8
8
|
[**events_post_events**](EventsApi.md#events_post_events) | **POST** /api/apps/{appId}/events | Publish events.
|
9
|
+
[**events_post_events2**](EventsApi.md#events_post_events2) | **POST** /api/me/events | Publish an event for the current user.
|
9
10
|
|
10
11
|
# **events_get_events**
|
11
12
|
> ListResponseDtoOfEventDto events_get_events(app_id, opts)
|
@@ -103,3 +104,46 @@ No authorization required
|
|
103
104
|
|
104
105
|
|
105
106
|
|
107
|
+
# **events_post_events2**
|
108
|
+
> events_post_events2(body)
|
109
|
+
|
110
|
+
Publish an event for the current user.
|
111
|
+
|
112
|
+
### Example
|
113
|
+
```ruby
|
114
|
+
# load the gem
|
115
|
+
require 'notifo'
|
116
|
+
|
117
|
+
api_instance = Notifo::EventsApi.new
|
118
|
+
body = Notifo::PublishDto.new # PublishDto | The publish request.
|
119
|
+
|
120
|
+
|
121
|
+
begin
|
122
|
+
#Publish an event for the current user.
|
123
|
+
api_instance.events_post_events2(body)
|
124
|
+
rescue Notifo::ApiError => e
|
125
|
+
puts "Exception when calling EventsApi->events_post_events2: #{e}"
|
126
|
+
end
|
127
|
+
```
|
128
|
+
|
129
|
+
### Parameters
|
130
|
+
|
131
|
+
Name | Type | Description | Notes
|
132
|
+
------------- | ------------- | ------------- | -------------
|
133
|
+
**body** | [**PublishDto**](PublishDto.md)| The publish request. |
|
134
|
+
|
135
|
+
### Return type
|
136
|
+
|
137
|
+
nil (empty response body)
|
138
|
+
|
139
|
+
### Authorization
|
140
|
+
|
141
|
+
No authorization required
|
142
|
+
|
143
|
+
### HTTP request headers
|
144
|
+
|
145
|
+
- **Content-Type**: application/json
|
146
|
+
- **Accept**: application/json
|
147
|
+
|
148
|
+
|
149
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Notifo::IntegrationCreatedDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | The id of the integration. |
|
7
|
+
**integration** | [**ConfiguredIntegrationDto**](ConfiguredIntegrationDto.md) | |
|
8
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Notifo::IntegrationDefinitionDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**title** | **String** | The title of the integration. |
|
7
|
+
**logo_url** | **String** | The logo URL for the integration. |
|
8
|
+
**description** | **String** | The optional description of the integration. | [optional]
|
9
|
+
**properties** | [**Array<IntegrationPropertyDto>**](IntegrationPropertyDto.md) | The properties to configure. |
|
10
|
+
**capabilities** | **Array<String>** | The features of the integration. |
|
11
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Notifo::IntegrationPropertyDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**name** | **String** | The field name for the property. |
|
7
|
+
**type** | [**IntegrationPropertyType**](IntegrationPropertyType.md) | |
|
8
|
+
**editor_description** | **String** | The optional description. | [optional]
|
9
|
+
**editor_label** | **String** | The optional label. | [optional]
|
10
|
+
**summary** | **BOOLEAN** | True to show this property in the summary. | [optional]
|
11
|
+
**is_required** | **BOOLEAN** | True when required. | [optional]
|
12
|
+
**min_value** | **Integer** | The min value (for numbers). | [optional]
|
13
|
+
**max_value** | **Integer** | The max value (for numbers). | [optional]
|
14
|
+
**min_length** | **Integer** | The min length (for strings). | [optional]
|
15
|
+
**max_length** | **Integer** | The min length (for strings). | [optional]
|
16
|
+
**default_value** | [****](.md) | The default value. | [optional]
|
17
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Notifo::ListResponseDtoOfMobilePushTokenDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**items** | [**Array<MobilePushTokenDto>**](MobilePushTokenDto.md) | The items. |
|
7
|
+
**total** | **Integer** | The total number of items. |
|
8
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Notifo::ListResponseDtoOfNotificationDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**items** | [**Array<NotificationDto>**](NotificationDto.md) | The items. |
|
7
|
+
**total** | **Integer** | The total number of items. |
|
8
|
+
|
data/docs/LogsApi.md
CHANGED
data/docs/MediaApi.md
CHANGED
@@ -0,0 +1,135 @@
|
|
1
|
+
# Notifo::MobilePushApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://notifo.easierlife.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**mobile_push_delete_token**](MobilePushApi.md#mobile_push_delete_token) | **DELETE** /api/me/mobilepush/{token} | Deletes a mobile push token for the current user.
|
8
|
+
[**mobile_push_get_tokens**](MobilePushApi.md#mobile_push_get_tokens) | **GET** /api/me/mobilepush | Returns the mobile push tokens.
|
9
|
+
[**mobile_push_post_token**](MobilePushApi.md#mobile_push_post_token) | **POST** /api/me/mobilepush | Register a mobile push token for the current user.
|
10
|
+
|
11
|
+
# **mobile_push_delete_token**
|
12
|
+
> mobile_push_delete_token(token)
|
13
|
+
|
14
|
+
Deletes a mobile push token for the current user.
|
15
|
+
|
16
|
+
### Example
|
17
|
+
```ruby
|
18
|
+
# load the gem
|
19
|
+
require 'notifo'
|
20
|
+
|
21
|
+
api_instance = Notifo::MobilePushApi.new
|
22
|
+
token = 'token_example' # String | The token to remove.
|
23
|
+
|
24
|
+
|
25
|
+
begin
|
26
|
+
#Deletes a mobile push token for the current user.
|
27
|
+
api_instance.mobile_push_delete_token(token)
|
28
|
+
rescue Notifo::ApiError => e
|
29
|
+
puts "Exception when calling MobilePushApi->mobile_push_delete_token: #{e}"
|
30
|
+
end
|
31
|
+
```
|
32
|
+
|
33
|
+
### Parameters
|
34
|
+
|
35
|
+
Name | Type | Description | Notes
|
36
|
+
------------- | ------------- | ------------- | -------------
|
37
|
+
**token** | **String**| The token to remove. |
|
38
|
+
|
39
|
+
### Return type
|
40
|
+
|
41
|
+
nil (empty response body)
|
42
|
+
|
43
|
+
### Authorization
|
44
|
+
|
45
|
+
No authorization required
|
46
|
+
|
47
|
+
### HTTP request headers
|
48
|
+
|
49
|
+
- **Content-Type**: Not defined
|
50
|
+
- **Accept**: application/json
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
# **mobile_push_get_tokens**
|
55
|
+
> ListResponseDtoOfMobilePushTokenDto mobile_push_get_tokens
|
56
|
+
|
57
|
+
Returns the mobile push tokens.
|
58
|
+
|
59
|
+
### Example
|
60
|
+
```ruby
|
61
|
+
# load the gem
|
62
|
+
require 'notifo'
|
63
|
+
|
64
|
+
api_instance = Notifo::MobilePushApi.new
|
65
|
+
|
66
|
+
begin
|
67
|
+
#Returns the mobile push tokens.
|
68
|
+
result = api_instance.mobile_push_get_tokens
|
69
|
+
p result
|
70
|
+
rescue Notifo::ApiError => e
|
71
|
+
puts "Exception when calling MobilePushApi->mobile_push_get_tokens: #{e}"
|
72
|
+
end
|
73
|
+
```
|
74
|
+
|
75
|
+
### Parameters
|
76
|
+
This endpoint does not need any parameter.
|
77
|
+
|
78
|
+
### Return type
|
79
|
+
|
80
|
+
[**ListResponseDtoOfMobilePushTokenDto**](ListResponseDtoOfMobilePushTokenDto.md)
|
81
|
+
|
82
|
+
### Authorization
|
83
|
+
|
84
|
+
No authorization required
|
85
|
+
|
86
|
+
### HTTP request headers
|
87
|
+
|
88
|
+
- **Content-Type**: Not defined
|
89
|
+
- **Accept**: application/json
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
# **mobile_push_post_token**
|
94
|
+
> mobile_push_post_token(body)
|
95
|
+
|
96
|
+
Register a mobile push token for the current user.
|
97
|
+
|
98
|
+
### Example
|
99
|
+
```ruby
|
100
|
+
# load the gem
|
101
|
+
require 'notifo'
|
102
|
+
|
103
|
+
api_instance = Notifo::MobilePushApi.new
|
104
|
+
body = Notifo::RegisterMobileTokenDto.new # RegisterMobileTokenDto | The request object.
|
105
|
+
|
106
|
+
|
107
|
+
begin
|
108
|
+
#Register a mobile push token for the current user.
|
109
|
+
api_instance.mobile_push_post_token(body)
|
110
|
+
rescue Notifo::ApiError => e
|
111
|
+
puts "Exception when calling MobilePushApi->mobile_push_post_token: #{e}"
|
112
|
+
end
|
113
|
+
```
|
114
|
+
|
115
|
+
### Parameters
|
116
|
+
|
117
|
+
Name | Type | Description | Notes
|
118
|
+
------------- | ------------- | ------------- | -------------
|
119
|
+
**body** | [**RegisterMobileTokenDto**](RegisterMobileTokenDto.md)| The request object. |
|
120
|
+
|
121
|
+
### Return type
|
122
|
+
|
123
|
+
nil (empty response body)
|
124
|
+
|
125
|
+
### Authorization
|
126
|
+
|
127
|
+
No authorization required
|
128
|
+
|
129
|
+
### HTTP request headers
|
130
|
+
|
131
|
+
- **Content-Type**: application/json
|
132
|
+
- **Accept**: application/json
|
133
|
+
|
134
|
+
|
135
|
+
|