messente_api 1.3.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +33 -30
- data/docs/BlacklistApi.md +105 -37
- data/docs/BulkMessagingApi.md +76 -0
- data/docs/BulkOmniMessageCreateSuccessResponse.md +18 -0
- data/docs/BulkOmniMessageCreateSuccessResponseMessagesInner.md +49 -0
- data/docs/BulkOmnimessage.md +18 -0
- data/docs/Channel.md +4 -5
- data/docs/ContactEnvelope.md +8 -7
- data/docs/ContactFields.md +26 -25
- data/docs/ContactListEnvelope.md +8 -7
- data/docs/ContactResponseFields.md +28 -27
- data/docs/ContactUpdateFields.md +24 -23
- data/docs/ContactsApi.md +221 -86
- data/docs/DeliveryReportApi.md +29 -13
- data/docs/DeliveryReportResponse.md +12 -11
- data/docs/DeliveryResult.md +22 -17
- data/docs/ErrorCodeOmnichannel.md +4 -5
- data/docs/ErrorCodeOmnichannelMachine.md +4 -5
- data/docs/ErrorCodePhonebook.md +4 -5
- data/docs/ErrorCodeStatistics.md +4 -5
- data/docs/ErrorItemNumberLookup.md +8 -7
- data/docs/ErrorItemNumberLookupError.md +10 -9
- data/docs/ErrorItemOmnichannel.md +14 -13
- data/docs/ErrorItemPhonebook.md +12 -11
- data/docs/ErrorItemStatistics.md +12 -11
- data/docs/ErrorNumberLookup.md +8 -7
- data/docs/ErrorOmnichannel.md +8 -7
- data/docs/ErrorPhonebook.md +8 -7
- data/docs/ErrorStatistics.md +8 -7
- data/docs/ErrorTitleOmnichannel.md +4 -5
- data/docs/ErrorTitlePhonebook.md +4 -5
- data/docs/FetchBlacklistSuccess.md +8 -7
- data/docs/GroupEnvelope.md +8 -7
- data/docs/GroupListEnvelope.md +8 -7
- data/docs/GroupName.md +8 -7
- data/docs/GroupResponseFields.md +14 -13
- data/docs/GroupsApi.md +136 -51
- data/docs/MessageResult.md +12 -11
- data/docs/MobileNetwork.md +16 -15
- data/docs/NumberLookupApi.md +30 -14
- data/docs/NumberToBlacklist.md +8 -7
- data/docs/NumbersToInvestigate.md +8 -7
- data/docs/OmniMessageCreateSuccessResponse.md +12 -11
- data/docs/Omnimessage.md +18 -15
- data/docs/OmnimessageApi.md +56 -23
- data/docs/OmnimessageMessagesInner.md +53 -0
- data/docs/PriceInfo.md +22 -0
- data/docs/Priority.md +15 -0
- data/docs/SMS.md +20 -17
- data/docs/StatisticsApi.md +30 -14
- data/docs/StatisticsReport.md +12 -11
- data/docs/StatisticsReportSettings.md +12 -11
- data/docs/StatisticsReportSuccess.md +8 -7
- data/docs/Status.md +4 -5
- data/docs/SyncNumberLookupResult.md +24 -23
- data/docs/SyncNumberLookupSuccess.md +10 -9
- data/docs/Telegram.md +20 -19
- data/docs/TextStore.md +4 -5
- data/docs/Viber.md +22 -19
- data/docs/WhatsApp.md +16 -19
- data/docs/WhatsAppComponent.md +24 -0
- data/docs/WhatsAppCurrency.md +22 -0
- data/docs/WhatsAppDatetime.md +18 -0
- data/docs/WhatsAppLanguage.md +20 -0
- data/docs/WhatsAppMedia.md +24 -0
- data/docs/WhatsAppParameter.md +30 -0
- data/docs/WhatsAppTemplate.md +22 -0
- data/git_push.sh +3 -4
- data/lib/messente_api/api/blacklist_api.rb +22 -15
- data/lib/messente_api/api/bulk_messaging_api.rb +88 -0
- data/lib/messente_api/api/contacts_api.rb +42 -28
- data/lib/messente_api/api/delivery_report_api.rb +6 -5
- data/lib/messente_api/api/groups_api.rb +30 -19
- data/lib/messente_api/api/number_lookup_api.rb +10 -6
- data/lib/messente_api/api/omnimessage_api.rb +14 -9
- data/lib/messente_api/api/statistics_api.rb +10 -6
- data/lib/messente_api/api_client.rb +72 -66
- data/lib/messente_api/api_error.rb +3 -2
- data/lib/messente_api/configuration.rb +64 -14
- data/lib/messente_api/models/{whats_app_audio.rb → bulk_omni_message_create_success_response.rb} +50 -38
- data/lib/messente_api/models/bulk_omni_message_create_success_response_messages_inner.rb +105 -0
- data/lib/messente_api/models/{whats_app_text.rb → bulk_omnimessage.rb} +49 -49
- data/lib/messente_api/models/channel.rb +9 -5
- data/lib/messente_api/models/contact_envelope.rb +31 -23
- data/lib/messente_api/models/contact_fields.rb +33 -23
- data/lib/messente_api/models/contact_list_envelope.rb +41 -23
- data/lib/messente_api/models/contact_response_fields.rb +31 -23
- data/lib/messente_api/models/contact_update_fields.rb +31 -23
- data/lib/messente_api/models/delivery_report_response.rb +37 -23
- data/lib/messente_api/models/delivery_result.rb +77 -27
- data/lib/messente_api/models/error_code_omnichannel.rb +9 -5
- data/lib/messente_api/models/error_code_omnichannel_machine.rb +9 -5
- data/lib/messente_api/models/error_code_phonebook.rb +9 -5
- data/lib/messente_api/models/error_code_statistics.rb +9 -5
- data/lib/messente_api/models/error_item_number_lookup.rb +33 -23
- data/lib/messente_api/models/error_item_number_lookup_error.rb +35 -23
- data/lib/messente_api/models/error_item_omnichannel.rb +61 -23
- data/lib/messente_api/models/error_item_phonebook.rb +59 -23
- data/lib/messente_api/models/error_item_statistics.rb +59 -23
- data/lib/messente_api/models/error_number_lookup.rb +33 -23
- data/lib/messente_api/models/error_omnichannel.rb +33 -23
- data/lib/messente_api/models/error_phonebook.rb +33 -23
- data/lib/messente_api/models/error_statistics.rb +33 -23
- data/lib/messente_api/models/error_title_omnichannel.rb +9 -5
- data/lib/messente_api/models/error_title_phonebook.rb +9 -5
- data/lib/messente_api/models/fetch_blacklist_success.rb +41 -23
- data/lib/messente_api/models/group_envelope.rb +31 -23
- data/lib/messente_api/models/group_list_envelope.rb +41 -23
- data/lib/messente_api/models/group_name.rb +33 -23
- data/lib/messente_api/models/group_response_fields.rb +37 -23
- data/lib/messente_api/models/message_result.rb +59 -23
- data/lib/messente_api/models/mobile_network.rb +31 -23
- data/lib/messente_api/models/number_to_blacklist.rb +33 -23
- data/lib/messente_api/models/numbers_to_investigate.rb +62 -24
- data/lib/messente_api/models/omni_message_create_success_response.rb +37 -23
- data/lib/messente_api/models/omnimessage.rb +71 -28
- data/lib/messente_api/models/omnimessage_messages_inner.rb +107 -0
- data/lib/messente_api/models/price_info.rb +257 -0
- data/lib/messente_api/models/priority.rb +41 -0
- data/lib/messente_api/models/sms.rb +45 -25
- data/lib/messente_api/models/statistics_report.rb +37 -23
- data/lib/messente_api/models/statistics_report_settings.rb +35 -23
- data/lib/messente_api/models/statistics_report_success.rb +33 -23
- data/lib/messente_api/models/status.rb +9 -5
- data/lib/messente_api/models/sync_number_lookup_result.rb +35 -24
- data/lib/messente_api/models/sync_number_lookup_success.rb +35 -23
- data/lib/messente_api/models/telegram.rb +31 -23
- data/lib/messente_api/models/text_store.rb +9 -5
- data/lib/messente_api/models/viber.rb +43 -25
- data/lib/messente_api/models/whats_app.rb +45 -54
- data/lib/messente_api/models/whats_app_component.rb +255 -0
- data/lib/messente_api/models/whats_app_currency.rb +257 -0
- data/lib/messente_api/models/{whats_app_document.rb → whats_app_datetime.rb} +48 -48
- data/lib/messente_api/models/{whats_app_image.rb → whats_app_language.rb} +55 -45
- data/lib/messente_api/models/whats_app_media.rb +246 -0
- data/lib/messente_api/models/whats_app_parameter.rb +278 -0
- data/lib/messente_api/models/whats_app_template.rb +251 -0
- data/lib/messente_api/version.rb +3 -3
- data/lib/messente_api.rb +16 -6
- data/messente_api.gemspec +5 -5
- data/spec/spec_helper.rb +2 -2
- metadata +35 -40
- data/docs/WhatsAppAudio.md +0 -17
- data/docs/WhatsAppDocument.md +0 -19
- data/docs/WhatsAppImage.md +0 -19
- data/docs/WhatsAppText.md +0 -19
- data/messente_api-1.3.0.gem +0 -0
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
data/docs/GroupResponseFields.md
CHANGED
@@ -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
|
-
##
|
12
|
+
## Example
|
13
13
|
|
14
14
|
```ruby
|
15
|
-
require '
|
15
|
+
require 'messente_api'
|
16
16
|
|
17
|
-
instance = MessenteApi::GroupResponseFields.new(
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
-
###
|
20
|
+
### Examples
|
22
21
|
|
23
22
|
```ruby
|
24
|
-
|
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 = {
|
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 "
|
40
|
+
puts "Error when calling GroupsApi->create_group: #{e}"
|
42
41
|
end
|
43
42
|
```
|
44
43
|
|
45
|
-
|
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
|
-
|
49
|
-
|
50
|
-
|
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
|
-
###
|
88
|
+
### Examples
|
73
89
|
|
74
90
|
```ruby
|
75
|
-
|
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 "
|
107
|
+
puts "Error when calling GroupsApi->delete_group: #{e}"
|
92
108
|
end
|
93
109
|
```
|
94
110
|
|
95
|
-
|
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
|
-
|
99
|
-
|
100
|
-
|
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
|
-
###
|
155
|
+
### Examples
|
123
156
|
|
124
157
|
```ruby
|
125
|
-
|
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 "
|
175
|
+
puts "Error when calling GroupsApi->fetch_group: #{e}"
|
143
176
|
end
|
144
177
|
```
|
145
178
|
|
146
|
-
|
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
|
150
|
-
|
151
|
-
**group_id** | **String
|
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
|
-
###
|
223
|
+
### Examples
|
174
224
|
|
175
225
|
```ruby
|
176
|
-
|
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 "
|
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
|
-
###
|
288
|
+
### Examples
|
221
289
|
|
222
290
|
```ruby
|
223
|
-
|
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 = {
|
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 "
|
309
|
+
puts "Error when calling GroupsApi->update_group: #{e}"
|
242
310
|
end
|
243
311
|
```
|
244
312
|
|
245
|
-
|
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
|
249
|
-
|
250
|
-
**group_id** | **String
|
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
|
|
data/docs/MessageResult.md
CHANGED
@@ -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
|
-
##
|
11
|
+
## Example
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
require '
|
14
|
+
require 'messente_api'
|
15
15
|
|
16
|
-
instance = MessenteApi::MessageResult.new(
|
17
|
-
|
18
|
-
|
16
|
+
instance = MessenteApi::MessageResult.new(
|
17
|
+
message_id: null,
|
18
|
+
channel: null,
|
19
|
+
sender: null
|
20
|
+
)
|
19
21
|
```
|
20
22
|
|
21
|
-
|
data/docs/MobileNetwork.md
CHANGED
@@ -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
|
-
##
|
13
|
+
## Example
|
14
14
|
|
15
15
|
```ruby
|
16
|
-
require '
|
16
|
+
require 'messente_api'
|
17
17
|
|
18
|
-
instance = MessenteApi::MobileNetwork.new(
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
-
|
data/docs/NumberLookupApi.md
CHANGED
@@ -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
|
-
###
|
16
|
+
### Examples
|
18
17
|
|
19
18
|
```ruby
|
20
|
-
|
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 = {
|
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 "
|
36
|
+
puts "Error when calling NumberLookupApi->fetch_info: #{e}"
|
38
37
|
end
|
39
38
|
```
|
40
39
|
|
41
|
-
|
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
|
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
|
|
data/docs/NumberToBlacklist.md
CHANGED
@@ -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
|
-
##
|
9
|
+
## Example
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'messente_api'
|
13
13
|
|
14
|
-
instance = MessenteApi::NumberToBlacklist.new(
|
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<String>** |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **numbers** | **Array<String>** | A list of phone numbers. Max 10 numbers per request | |
|
8
8
|
|
9
|
-
##
|
9
|
+
## Example
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'messente_api'
|
13
13
|
|
14
|
-
instance = MessenteApi::NumbersToInvestigate.new(
|
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<MessageResult>**](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<MessageResult>**](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
|
-
##
|
11
|
+
## Example
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
require '
|
14
|
+
require 'messente_api'
|
15
15
|
|
16
|
-
instance = MessenteApi::OmniMessageCreateSuccessResponse.new(
|
17
|
-
|
18
|
-
|
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,24 +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<
|
9
|
-
**dlr_url** | **String** | URL where the delivery report will be sent | [optional]
|
10
|
-
**text_store** | [**TextStore**](TextStore.md) | | [optional]
|
11
|
-
**time_to_send** | **
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **to** | **String** | Phone number in e.164 format | |
|
8
|
+
| **messages** | [**Array<OmnimessageMessagesInner>**](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] |
|
12
13
|
|
13
|
-
##
|
14
|
+
## Example
|
14
15
|
|
15
16
|
```ruby
|
16
|
-
require '
|
17
|
+
require 'messente_api'
|
17
18
|
|
18
|
-
instance = MessenteApi::Omnimessage.new(
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
+
)
|
23
27
|
```
|
24
28
|
|
25
|
-
|