messente_api 1.4.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +33 -30
  3. data/docs/BlacklistApi.md +105 -37
  4. data/docs/BulkMessagingApi.md +76 -0
  5. data/docs/BulkOmniMessageCreateSuccessResponse.md +18 -0
  6. data/docs/BulkOmniMessageCreateSuccessResponseMessagesInner.md +49 -0
  7. data/docs/BulkOmnimessage.md +18 -0
  8. data/docs/Channel.md +4 -5
  9. data/docs/ContactEnvelope.md +8 -7
  10. data/docs/ContactFields.md +26 -25
  11. data/docs/ContactListEnvelope.md +8 -7
  12. data/docs/ContactResponseFields.md +28 -27
  13. data/docs/ContactUpdateFields.md +24 -23
  14. data/docs/ContactsApi.md +221 -86
  15. data/docs/DeliveryReportApi.md +29 -13
  16. data/docs/DeliveryReportResponse.md +12 -11
  17. data/docs/DeliveryResult.md +22 -17
  18. data/docs/ErrorCodeOmnichannel.md +4 -5
  19. data/docs/ErrorCodeOmnichannelMachine.md +4 -5
  20. data/docs/ErrorCodePhonebook.md +4 -5
  21. data/docs/ErrorCodeStatistics.md +4 -5
  22. data/docs/ErrorItemNumberLookup.md +8 -7
  23. data/docs/ErrorItemNumberLookupError.md +10 -9
  24. data/docs/ErrorItemOmnichannel.md +14 -13
  25. data/docs/ErrorItemPhonebook.md +12 -11
  26. data/docs/ErrorItemStatistics.md +12 -11
  27. data/docs/ErrorNumberLookup.md +8 -7
  28. data/docs/ErrorOmnichannel.md +8 -7
  29. data/docs/ErrorPhonebook.md +8 -7
  30. data/docs/ErrorStatistics.md +8 -7
  31. data/docs/ErrorTitleOmnichannel.md +4 -5
  32. data/docs/ErrorTitlePhonebook.md +4 -5
  33. data/docs/FetchBlacklistSuccess.md +8 -7
  34. data/docs/GroupEnvelope.md +8 -7
  35. data/docs/GroupListEnvelope.md +8 -7
  36. data/docs/GroupName.md +8 -7
  37. data/docs/GroupResponseFields.md +14 -13
  38. data/docs/GroupsApi.md +136 -51
  39. data/docs/MessageResult.md +12 -11
  40. data/docs/MobileNetwork.md +16 -15
  41. data/docs/NumberLookupApi.md +30 -14
  42. data/docs/NumberToBlacklist.md +8 -7
  43. data/docs/NumbersToInvestigate.md +8 -7
  44. data/docs/OmniMessageCreateSuccessResponse.md +12 -11
  45. data/docs/Omnimessage.md +18 -17
  46. data/docs/OmnimessageApi.md +56 -23
  47. data/docs/OmnimessageMessagesInner.md +53 -0
  48. data/docs/PriceInfo.md +22 -0
  49. data/docs/Priority.md +4 -5
  50. data/docs/SMS.md +20 -17
  51. data/docs/StatisticsApi.md +30 -14
  52. data/docs/StatisticsReport.md +12 -11
  53. data/docs/StatisticsReportSettings.md +12 -11
  54. data/docs/StatisticsReportSuccess.md +8 -7
  55. data/docs/Status.md +4 -5
  56. data/docs/SyncNumberLookupResult.md +24 -23
  57. data/docs/SyncNumberLookupSuccess.md +10 -9
  58. data/docs/Telegram.md +20 -19
  59. data/docs/TextStore.md +4 -5
  60. data/docs/Viber.md +22 -19
  61. data/docs/WhatsApp.md +16 -19
  62. data/docs/WhatsAppComponent.md +24 -0
  63. data/docs/WhatsAppCurrency.md +22 -0
  64. data/docs/WhatsAppDatetime.md +18 -0
  65. data/docs/WhatsAppLanguage.md +20 -0
  66. data/docs/WhatsAppMedia.md +24 -0
  67. data/docs/WhatsAppParameter.md +30 -0
  68. data/docs/WhatsAppTemplate.md +22 -0
  69. data/git_push.sh +3 -4
  70. data/lib/messente_api/api/blacklist_api.rb +22 -15
  71. data/lib/messente_api/api/bulk_messaging_api.rb +88 -0
  72. data/lib/messente_api/api/contacts_api.rb +42 -28
  73. data/lib/messente_api/api/delivery_report_api.rb +6 -5
  74. data/lib/messente_api/api/groups_api.rb +30 -19
  75. data/lib/messente_api/api/number_lookup_api.rb +10 -6
  76. data/lib/messente_api/api/omnimessage_api.rb +14 -9
  77. data/lib/messente_api/api/statistics_api.rb +10 -6
  78. data/lib/messente_api/api_client.rb +72 -66
  79. data/lib/messente_api/api_error.rb +3 -2
  80. data/lib/messente_api/configuration.rb +64 -14
  81. data/lib/messente_api/models/{whats_app_audio.rb → bulk_omni_message_create_success_response.rb} +50 -38
  82. data/lib/messente_api/models/bulk_omni_message_create_success_response_messages_inner.rb +105 -0
  83. data/lib/messente_api/models/{whats_app_text.rb → bulk_omnimessage.rb} +49 -49
  84. data/lib/messente_api/models/channel.rb +9 -5
  85. data/lib/messente_api/models/contact_envelope.rb +31 -23
  86. data/lib/messente_api/models/contact_fields.rb +33 -23
  87. data/lib/messente_api/models/contact_list_envelope.rb +41 -23
  88. data/lib/messente_api/models/contact_response_fields.rb +31 -23
  89. data/lib/messente_api/models/contact_update_fields.rb +31 -23
  90. data/lib/messente_api/models/delivery_report_response.rb +37 -23
  91. data/lib/messente_api/models/delivery_result.rb +77 -27
  92. data/lib/messente_api/models/error_code_omnichannel.rb +9 -5
  93. data/lib/messente_api/models/error_code_omnichannel_machine.rb +9 -5
  94. data/lib/messente_api/models/error_code_phonebook.rb +9 -5
  95. data/lib/messente_api/models/error_code_statistics.rb +9 -5
  96. data/lib/messente_api/models/error_item_number_lookup.rb +33 -23
  97. data/lib/messente_api/models/error_item_number_lookup_error.rb +35 -23
  98. data/lib/messente_api/models/error_item_omnichannel.rb +61 -23
  99. data/lib/messente_api/models/error_item_phonebook.rb +59 -23
  100. data/lib/messente_api/models/error_item_statistics.rb +59 -23
  101. data/lib/messente_api/models/error_number_lookup.rb +33 -23
  102. data/lib/messente_api/models/error_omnichannel.rb +33 -23
  103. data/lib/messente_api/models/error_phonebook.rb +33 -23
  104. data/lib/messente_api/models/error_statistics.rb +33 -23
  105. data/lib/messente_api/models/error_title_omnichannel.rb +9 -5
  106. data/lib/messente_api/models/error_title_phonebook.rb +9 -5
  107. data/lib/messente_api/models/fetch_blacklist_success.rb +41 -23
  108. data/lib/messente_api/models/group_envelope.rb +31 -23
  109. data/lib/messente_api/models/group_list_envelope.rb +41 -23
  110. data/lib/messente_api/models/group_name.rb +33 -23
  111. data/lib/messente_api/models/group_response_fields.rb +37 -23
  112. data/lib/messente_api/models/message_result.rb +59 -23
  113. data/lib/messente_api/models/mobile_network.rb +31 -23
  114. data/lib/messente_api/models/number_to_blacklist.rb +33 -23
  115. data/lib/messente_api/models/numbers_to_investigate.rb +62 -24
  116. data/lib/messente_api/models/omni_message_create_success_response.rb +37 -23
  117. data/lib/messente_api/models/omnimessage.rb +59 -25
  118. data/lib/messente_api/models/omnimessage_messages_inner.rb +107 -0
  119. data/lib/messente_api/models/price_info.rb +257 -0
  120. data/lib/messente_api/models/priority.rb +9 -5
  121. data/lib/messente_api/models/sms.rb +45 -25
  122. data/lib/messente_api/models/statistics_report.rb +37 -23
  123. data/lib/messente_api/models/statistics_report_settings.rb +35 -23
  124. data/lib/messente_api/models/statistics_report_success.rb +33 -23
  125. data/lib/messente_api/models/status.rb +9 -5
  126. data/lib/messente_api/models/sync_number_lookup_result.rb +35 -24
  127. data/lib/messente_api/models/sync_number_lookup_success.rb +35 -23
  128. data/lib/messente_api/models/telegram.rb +31 -23
  129. data/lib/messente_api/models/text_store.rb +9 -5
  130. data/lib/messente_api/models/viber.rb +43 -25
  131. data/lib/messente_api/models/whats_app.rb +45 -54
  132. data/lib/messente_api/models/whats_app_component.rb +255 -0
  133. data/lib/messente_api/models/whats_app_currency.rb +257 -0
  134. data/lib/messente_api/models/{whats_app_document.rb → whats_app_datetime.rb} +48 -48
  135. data/lib/messente_api/models/{whats_app_image.rb → whats_app_language.rb} +55 -45
  136. data/lib/messente_api/models/whats_app_media.rb +246 -0
  137. data/lib/messente_api/models/whats_app_parameter.rb +278 -0
  138. data/lib/messente_api/models/whats_app_template.rb +251 -0
  139. data/lib/messente_api/version.rb +3 -3
  140. data/lib/messente_api.rb +15 -6
  141. data/messente_api.gemspec +5 -5
  142. data/spec/spec_helper.rb +2 -2
  143. metadata +33 -39
  144. data/docs/WhatsAppAudio.md +0 -17
  145. data/docs/WhatsAppDocument.md +0 -19
  146. data/docs/WhatsAppImage.md +0 -19
  147. data/docs/WhatsAppText.md +0 -19
  148. data/spec/api_client_spec.rb +0 -226
  149. data/spec/configuration_spec.rb +0 -42
@@ -2,22 +2,23 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **id** | **String** | Id string in UUID format |
8
- **name** | **String** | The name of the group |
9
- **created_on** | **String** | When the group was created | [optional]
10
- **contacts_count** | **Integer** | The count of contacts in the group |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Id string in UUID format | |
8
+ | **name** | **String** | The name of the group | |
9
+ | **created_on** | **String** | When the group was created | [optional] |
10
+ | **contacts_count** | **Integer** | The count of contacts in the group | |
11
11
 
12
- ## Code Sample
12
+ ## Example
13
13
 
14
14
  ```ruby
15
- require 'MessenteApi'
15
+ require 'messente_api'
16
16
 
17
- instance = MessenteApi::GroupResponseFields.new(id: null,
18
- name: null,
19
- created_on: null,
20
- contacts_count: null)
17
+ instance = MessenteApi::GroupResponseFields.new(
18
+ id: null,
19
+ name: null,
20
+ created_on: null,
21
+ contacts_count: null
22
+ )
21
23
  ```
22
24
 
23
-
data/docs/GroupsApi.md CHANGED
@@ -2,26 +2,25 @@
2
2
 
3
3
  All URIs are relative to *https://api.messente.com/v1*
4
4
 
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**create_group**](GroupsApi.md#create_group) | **POST** /phonebook/groups | Creates a new group with the provided name
8
- [**delete_group**](GroupsApi.md#delete_group) | **DELETE** /phonebook/groups/{groupId} | Deletes a group
9
- [**fetch_group**](GroupsApi.md#fetch_group) | **GET** /phonebook/groups/{groupId} | Lists a group
10
- [**fetch_groups**](GroupsApi.md#fetch_groups) | **GET** /phonebook/groups | Returns all groups
11
- [**update_group**](GroupsApi.md#update_group) | **PUT** /phonebook/groups/{groupId} | Updates a group with the provided name
12
-
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_group**](GroupsApi.md#create_group) | **POST** /phonebook/groups | Creates a new group with the provided name |
8
+ | [**delete_group**](GroupsApi.md#delete_group) | **DELETE** /phonebook/groups/{groupId} | Deletes a group |
9
+ | [**fetch_group**](GroupsApi.md#fetch_group) | **GET** /phonebook/groups/{groupId} | Lists a group |
10
+ | [**fetch_groups**](GroupsApi.md#fetch_groups) | **GET** /phonebook/groups | Returns all groups |
11
+ | [**update_group**](GroupsApi.md#update_group) | **PUT** /phonebook/groups/{groupId} | Updates a group with the provided name |
13
12
 
14
13
 
15
14
  ## create_group
16
15
 
17
- > GroupEnvelope create_group(group_name)
16
+ > <GroupEnvelope> create_group(group_name)
18
17
 
19
18
  Creates a new group with the provided name
20
19
 
21
- ### Example
20
+ ### Examples
22
21
 
23
22
  ```ruby
24
- # load the gem
23
+ require 'time'
25
24
  require 'messente_api'
26
25
  # setup authorization
27
26
  MessenteApi.configure do |config|
@@ -31,23 +30,40 @@ MessenteApi.configure do |config|
31
30
  end
32
31
 
33
32
  api_instance = MessenteApi::GroupsApi.new
34
- group_name = {"name":"Any group name"} # GroupName |
33
+ group_name = MessenteApi::GroupName.new({name: 'name_example'}) # GroupName |
35
34
 
36
35
  begin
37
- #Creates a new group with the provided name
36
+ # Creates a new group with the provided name
38
37
  result = api_instance.create_group(group_name)
39
38
  p result
40
39
  rescue MessenteApi::ApiError => e
41
- puts "Exception when calling GroupsApi->create_group: #{e}"
40
+ puts "Error when calling GroupsApi->create_group: #{e}"
42
41
  end
43
42
  ```
44
43
 
45
- ### Parameters
44
+ #### Using the create_group_with_http_info variant
46
45
 
46
+ This returns an Array which contains the response data, status code and headers.
47
47
 
48
- Name | Type | Description | Notes
49
- ------------- | ------------- | ------------- | -------------
50
- **group_name** | [**GroupName**](GroupName.md)| |
48
+ > <Array(<GroupEnvelope>, Integer, Hash)> create_group_with_http_info(group_name)
49
+
50
+ ```ruby
51
+ begin
52
+ # Creates a new group with the provided name
53
+ data, status_code, headers = api_instance.create_group_with_http_info(group_name)
54
+ p status_code # => 2xx
55
+ p headers # => { ... }
56
+ p data # => <GroupEnvelope>
57
+ rescue MessenteApi::ApiError => e
58
+ puts "Error when calling GroupsApi->create_group_with_http_info: #{e}"
59
+ end
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ | Name | Type | Description | Notes |
65
+ | ---- | ---- | ----------- | ----- |
66
+ | **group_name** | [**GroupName**](GroupName.md) | | |
51
67
 
52
68
  ### Return type
53
69
 
@@ -69,10 +85,10 @@ Name | Type | Description | Notes
69
85
 
70
86
  Deletes a group
71
87
 
72
- ### Example
88
+ ### Examples
73
89
 
74
90
  ```ruby
75
- # load the gem
91
+ require 'time'
76
92
  require 'messente_api'
77
93
  # setup authorization
78
94
  MessenteApi.configure do |config|
@@ -85,19 +101,36 @@ api_instance = MessenteApi::GroupsApi.new
85
101
  group_id = '5792a02a-e5c2-422b-a0a0-0ae65d814663' # String | String in UUID format
86
102
 
87
103
  begin
88
- #Deletes a group
104
+ # Deletes a group
89
105
  api_instance.delete_group(group_id)
90
106
  rescue MessenteApi::ApiError => e
91
- puts "Exception when calling GroupsApi->delete_group: #{e}"
107
+ puts "Error when calling GroupsApi->delete_group: #{e}"
92
108
  end
93
109
  ```
94
110
 
95
- ### Parameters
111
+ #### Using the delete_group_with_http_info variant
96
112
 
113
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
97
114
 
98
- Name | Type | Description | Notes
99
- ------------- | ------------- | ------------- | -------------
100
- **group_id** | **String**| String in UUID format |
115
+ > <Array(nil, Integer, Hash)> delete_group_with_http_info(group_id)
116
+
117
+ ```ruby
118
+ begin
119
+ # Deletes a group
120
+ data, status_code, headers = api_instance.delete_group_with_http_info(group_id)
121
+ p status_code # => 2xx
122
+ p headers # => { ... }
123
+ p data # => nil
124
+ rescue MessenteApi::ApiError => e
125
+ puts "Error when calling GroupsApi->delete_group_with_http_info: #{e}"
126
+ end
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+ | Name | Type | Description | Notes |
132
+ | ---- | ---- | ----------- | ----- |
133
+ | **group_id** | **String** | String in UUID format | |
101
134
 
102
135
  ### Return type
103
136
 
@@ -115,14 +148,14 @@ nil (empty response body)
115
148
 
116
149
  ## fetch_group
117
150
 
118
- > GroupEnvelope fetch_group(group_id)
151
+ > <GroupEnvelope> fetch_group(group_id)
119
152
 
120
153
  Lists a group
121
154
 
122
- ### Example
155
+ ### Examples
123
156
 
124
157
  ```ruby
125
- # load the gem
158
+ require 'time'
126
159
  require 'messente_api'
127
160
  # setup authorization
128
161
  MessenteApi.configure do |config|
@@ -135,20 +168,37 @@ api_instance = MessenteApi::GroupsApi.new
135
168
  group_id = '5792a02a-e5c2-422b-a0a0-0ae65d814663' # String | String in UUID format
136
169
 
137
170
  begin
138
- #Lists a group
171
+ # Lists a group
139
172
  result = api_instance.fetch_group(group_id)
140
173
  p result
141
174
  rescue MessenteApi::ApiError => e
142
- puts "Exception when calling GroupsApi->fetch_group: #{e}"
175
+ puts "Error when calling GroupsApi->fetch_group: #{e}"
143
176
  end
144
177
  ```
145
178
 
146
- ### Parameters
179
+ #### Using the fetch_group_with_http_info variant
180
+
181
+ This returns an Array which contains the response data, status code and headers.
182
+
183
+ > <Array(<GroupEnvelope>, Integer, Hash)> fetch_group_with_http_info(group_id)
184
+
185
+ ```ruby
186
+ begin
187
+ # Lists a group
188
+ data, status_code, headers = api_instance.fetch_group_with_http_info(group_id)
189
+ p status_code # => 2xx
190
+ p headers # => { ... }
191
+ p data # => <GroupEnvelope>
192
+ rescue MessenteApi::ApiError => e
193
+ puts "Error when calling GroupsApi->fetch_group_with_http_info: #{e}"
194
+ end
195
+ ```
147
196
 
197
+ ### Parameters
148
198
 
149
- Name | Type | Description | Notes
150
- ------------- | ------------- | ------------- | -------------
151
- **group_id** | **String**| String in UUID format |
199
+ | Name | Type | Description | Notes |
200
+ | ---- | ---- | ----------- | ----- |
201
+ | **group_id** | **String** | String in UUID format | |
152
202
 
153
203
  ### Return type
154
204
 
@@ -166,14 +216,14 @@ Name | Type | Description | Notes
166
216
 
167
217
  ## fetch_groups
168
218
 
169
- > GroupListEnvelope fetch_groups
219
+ > <GroupListEnvelope> fetch_groups
170
220
 
171
221
  Returns all groups
172
222
 
173
- ### Example
223
+ ### Examples
174
224
 
175
225
  ```ruby
176
- # load the gem
226
+ require 'time'
177
227
  require 'messente_api'
178
228
  # setup authorization
179
229
  MessenteApi.configure do |config|
@@ -185,11 +235,29 @@ end
185
235
  api_instance = MessenteApi::GroupsApi.new
186
236
 
187
237
  begin
188
- #Returns all groups
238
+ # Returns all groups
189
239
  result = api_instance.fetch_groups
190
240
  p result
191
241
  rescue MessenteApi::ApiError => e
192
- puts "Exception when calling GroupsApi->fetch_groups: #{e}"
242
+ puts "Error when calling GroupsApi->fetch_groups: #{e}"
243
+ end
244
+ ```
245
+
246
+ #### Using the fetch_groups_with_http_info variant
247
+
248
+ This returns an Array which contains the response data, status code and headers.
249
+
250
+ > <Array(<GroupListEnvelope>, Integer, Hash)> fetch_groups_with_http_info
251
+
252
+ ```ruby
253
+ begin
254
+ # Returns all groups
255
+ data, status_code, headers = api_instance.fetch_groups_with_http_info
256
+ p status_code # => 2xx
257
+ p headers # => { ... }
258
+ p data # => <GroupListEnvelope>
259
+ rescue MessenteApi::ApiError => e
260
+ puts "Error when calling GroupsApi->fetch_groups_with_http_info: #{e}"
193
261
  end
194
262
  ```
195
263
 
@@ -213,14 +281,14 @@ This endpoint does not need any parameter.
213
281
 
214
282
  ## update_group
215
283
 
216
- > GroupEnvelope update_group(group_id, group_name)
284
+ > <GroupEnvelope> update_group(group_id, group_name)
217
285
 
218
286
  Updates a group with the provided name
219
287
 
220
- ### Example
288
+ ### Examples
221
289
 
222
290
  ```ruby
223
- # load the gem
291
+ require 'time'
224
292
  require 'messente_api'
225
293
  # setup authorization
226
294
  MessenteApi.configure do |config|
@@ -231,24 +299,41 @@ end
231
299
 
232
300
  api_instance = MessenteApi::GroupsApi.new
233
301
  group_id = '5792a02a-e5c2-422b-a0a0-0ae65d814663' # String | String in UUID format
234
- group_name = {"name":"Any group name"} # GroupName |
302
+ group_name = MessenteApi::GroupName.new({name: 'name_example'}) # GroupName |
235
303
 
236
304
  begin
237
- #Updates a group with the provided name
305
+ # Updates a group with the provided name
238
306
  result = api_instance.update_group(group_id, group_name)
239
307
  p result
240
308
  rescue MessenteApi::ApiError => e
241
- puts "Exception when calling GroupsApi->update_group: #{e}"
309
+ puts "Error when calling GroupsApi->update_group: #{e}"
242
310
  end
243
311
  ```
244
312
 
245
- ### Parameters
313
+ #### Using the update_group_with_http_info variant
314
+
315
+ This returns an Array which contains the response data, status code and headers.
316
+
317
+ > <Array(<GroupEnvelope>, Integer, Hash)> update_group_with_http_info(group_id, group_name)
318
+
319
+ ```ruby
320
+ begin
321
+ # Updates a group with the provided name
322
+ data, status_code, headers = api_instance.update_group_with_http_info(group_id, group_name)
323
+ p status_code # => 2xx
324
+ p headers # => { ... }
325
+ p data # => <GroupEnvelope>
326
+ rescue MessenteApi::ApiError => e
327
+ puts "Error when calling GroupsApi->update_group_with_http_info: #{e}"
328
+ end
329
+ ```
246
330
 
331
+ ### Parameters
247
332
 
248
- Name | Type | Description | Notes
249
- ------------- | ------------- | ------------- | -------------
250
- **group_id** | **String**| String in UUID format |
251
- **group_name** | [**GroupName**](GroupName.md)| |
333
+ | Name | Type | Description | Notes |
334
+ | ---- | ---- | ----------- | ----- |
335
+ | **group_id** | **String** | String in UUID format | |
336
+ | **group_name** | [**GroupName**](GroupName.md) | | |
252
337
 
253
338
  ### Return type
254
339
 
@@ -2,20 +2,21 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **message_id** | **String** | Unique identifier for the message |
8
- **channel** | [**Channel**](Channel.md) | |
9
- **sender** | **String** | Sender that was used for the message |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message_id** | **String** | Unique identifier for the message | |
8
+ | **channel** | [**Channel**](Channel.md) | | |
9
+ | **sender** | **String** | Sender that was used for the message | |
10
10
 
11
- ## Code Sample
11
+ ## Example
12
12
 
13
13
  ```ruby
14
- require 'MessenteApi'
14
+ require 'messente_api'
15
15
 
16
- instance = MessenteApi::MessageResult.new(message_id: null,
17
- channel: null,
18
- sender: null)
16
+ instance = MessenteApi::MessageResult.new(
17
+ message_id: null,
18
+ channel: null,
19
+ sender: null
20
+ )
19
21
  ```
20
22
 
21
-
@@ -2,24 +2,25 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **mccmnc** | **String** | Mobile country and mobile network code | [optional]
8
- **network_name** | **String** | Mobile network name | [optional]
9
- **country_name** | **String** | Country name | [optional]
10
- **country_prefix** | **String** | Country prefix | [optional]
11
- **country_code** | **String** | Country code | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **mccmnc** | **String** | Mobile country and mobile network code | [optional] |
8
+ | **network_name** | **String** | Mobile network name | [optional] |
9
+ | **country_name** | **String** | Country name | [optional] |
10
+ | **country_prefix** | **String** | Country prefix | [optional] |
11
+ | **country_code** | **String** | Country code | [optional] |
12
12
 
13
- ## Code Sample
13
+ ## Example
14
14
 
15
15
  ```ruby
16
- require 'MessenteApi'
16
+ require 'messente_api'
17
17
 
18
- instance = MessenteApi::MobileNetwork.new(mccmnc: null,
19
- network_name: null,
20
- country_name: null,
21
- country_prefix: null,
22
- country_code: null)
18
+ instance = MessenteApi::MobileNetwork.new(
19
+ mccmnc: null,
20
+ network_name: null,
21
+ country_name: null,
22
+ country_prefix: null,
23
+ country_code: null
24
+ )
23
25
  ```
24
26
 
25
-
@@ -2,22 +2,21 @@
2
2
 
3
3
  All URIs are relative to *https://api.messente.com/v1*
4
4
 
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**fetch_info**](NumberLookupApi.md#fetch_info) | **POST** /hlr/sync | Requests info about phone numbers
8
-
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**fetch_info**](NumberLookupApi.md#fetch_info) | **POST** /hlr/sync | Requests info about phone numbers |
9
8
 
10
9
 
11
10
  ## fetch_info
12
11
 
13
- > SyncNumberLookupSuccess fetch_info(numbers_to_investigate)
12
+ > <SyncNumberLookupSuccess> fetch_info(numbers_to_investigate)
14
13
 
15
14
  Requests info about phone numbers
16
15
 
17
- ### Example
16
+ ### Examples
18
17
 
19
18
  ```ruby
20
- # load the gem
19
+ require 'time'
21
20
  require 'messente_api'
22
21
  # setup authorization
23
22
  MessenteApi.configure do |config|
@@ -27,23 +26,40 @@ MessenteApi.configure do |config|
27
26
  end
28
27
 
29
28
  api_instance = MessenteApi::NumberLookupApi.new
30
- numbers_to_investigate = {"numbers":["+37251000000","+37251000001"]} # NumbersToInvestigate | Numbers for lookup
29
+ numbers_to_investigate = MessenteApi::NumbersToInvestigate.new({numbers: ['numbers_example']}) # NumbersToInvestigate | Numbers for lookup
31
30
 
32
31
  begin
33
- #Requests info about phone numbers
32
+ # Requests info about phone numbers
34
33
  result = api_instance.fetch_info(numbers_to_investigate)
35
34
  p result
36
35
  rescue MessenteApi::ApiError => e
37
- puts "Exception when calling NumberLookupApi->fetch_info: #{e}"
36
+ puts "Error when calling NumberLookupApi->fetch_info: #{e}"
38
37
  end
39
38
  ```
40
39
 
41
- ### Parameters
40
+ #### Using the fetch_info_with_http_info variant
41
+
42
+ This returns an Array which contains the response data, status code and headers.
42
43
 
44
+ > <Array(<SyncNumberLookupSuccess>, Integer, Hash)> fetch_info_with_http_info(numbers_to_investigate)
45
+
46
+ ```ruby
47
+ begin
48
+ # Requests info about phone numbers
49
+ data, status_code, headers = api_instance.fetch_info_with_http_info(numbers_to_investigate)
50
+ p status_code # => 2xx
51
+ p headers # => { ... }
52
+ p data # => <SyncNumberLookupSuccess>
53
+ rescue MessenteApi::ApiError => e
54
+ puts "Error when calling NumberLookupApi->fetch_info_with_http_info: #{e}"
55
+ end
56
+ ```
57
+
58
+ ### Parameters
43
59
 
44
- Name | Type | Description | Notes
45
- ------------- | ------------- | ------------- | -------------
46
- **numbers_to_investigate** | [**NumbersToInvestigate**](NumbersToInvestigate.md)| Numbers for lookup |
60
+ | Name | Type | Description | Notes |
61
+ | ---- | ---- | ----------- | ----- |
62
+ | **numbers_to_investigate** | [**NumbersToInvestigate**](NumbersToInvestigate.md) | Numbers for lookup | |
47
63
 
48
64
  ### Return type
49
65
 
@@ -2,16 +2,17 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **phone_number** | **String** | Phone number in e.164 format |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **phone_number** | **String** | Phone number in e.164 format | |
8
8
 
9
- ## Code Sample
9
+ ## Example
10
10
 
11
11
  ```ruby
12
- require 'MessenteApi'
12
+ require 'messente_api'
13
13
 
14
- instance = MessenteApi::NumberToBlacklist.new(phone_number: null)
14
+ instance = MessenteApi::NumberToBlacklist.new(
15
+ phone_number: null
16
+ )
15
17
  ```
16
18
 
17
-
@@ -2,16 +2,17 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **numbers** | **Array&lt;String&gt;** | Array of phone numbers |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **numbers** | **Array&lt;String&gt;** | A list of phone numbers. Max 10 numbers per request | |
8
8
 
9
- ## Code Sample
9
+ ## Example
10
10
 
11
11
  ```ruby
12
- require 'MessenteApi'
12
+ require 'messente_api'
13
13
 
14
- instance = MessenteApi::NumbersToInvestigate.new(numbers: null)
14
+ instance = MessenteApi::NumbersToInvestigate.new(
15
+ numbers: null
16
+ )
15
17
  ```
16
18
 
17
-
@@ -2,20 +2,21 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **messages** | [**Array&lt;MessageResult&gt;**](MessageResult.md) | List of messages that compose the omnimessage |
8
- **to** | **String** | Phone number in e.164 format |
9
- **omnimessage_id** | **String** | Unique identifier for the omnimessage |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **messages** | [**Array&lt;MessageResult&gt;**](MessageResult.md) | List of messages that compose the omnimessage | |
8
+ | **to** | **String** | Phone number in e.164 format | |
9
+ | **omnimessage_id** | **String** | Unique identifier for the omnimessage | |
10
10
 
11
- ## Code Sample
11
+ ## Example
12
12
 
13
13
  ```ruby
14
- require 'MessenteApi'
14
+ require 'messente_api'
15
15
 
16
- instance = MessenteApi::OmniMessageCreateSuccessResponse.new(messages: null,
17
- to: null,
18
- omnimessage_id: null)
16
+ instance = MessenteApi::OmniMessageCreateSuccessResponse.new(
17
+ messages: null,
18
+ to: null,
19
+ omnimessage_id: null
20
+ )
19
21
  ```
20
22
 
21
-
data/docs/Omnimessage.md CHANGED
@@ -2,26 +2,27 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **to** | **String** | Phone number in e.164 format |
8
- **messages** | [**Array&lt;OneOfViberSMSWhatsAppTelegram&gt;**](OneOfViberSMSWhatsAppTelegram.md) | An array of messages |
9
- **dlr_url** | **String** | URL where the delivery report will be sent | [optional]
10
- **text_store** | [**TextStore**](TextStore.md) | | [optional]
11
- **time_to_send** | **DateTime** | Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) | [optional]
12
- **priority** | [**Priority**](Priority.md) | | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **to** | **String** | Phone number in e.164 format | |
8
+ | **messages** | [**Array&lt;OmnimessageMessagesInner&gt;**](OmnimessageMessagesInner.md) | An array of messages | |
9
+ | **dlr_url** | **String** | URL where the delivery report will be sent | [optional] |
10
+ | **text_store** | [**TextStore**](TextStore.md) | | [optional] |
11
+ | **time_to_send** | **Time** | Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) | [optional] |
12
+ | **priority** | [**Priority**](Priority.md) | | [optional] |
13
13
 
14
- ## Code Sample
14
+ ## Example
15
15
 
16
16
  ```ruby
17
- require 'MessenteApi'
17
+ require 'messente_api'
18
18
 
19
- instance = MessenteApi::Omnimessage.new(to: null,
20
- messages: null,
21
- dlr_url: null,
22
- text_store: null,
23
- time_to_send: null,
24
- priority: null)
19
+ instance = MessenteApi::Omnimessage.new(
20
+ to: null,
21
+ messages: null,
22
+ dlr_url: null,
23
+ text_store: null,
24
+ time_to_send: null,
25
+ priority: null
26
+ )
25
27
  ```
26
28
 
27
-