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.
- 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 -17
- data/docs/OmnimessageApi.md +56 -23
- data/docs/OmnimessageMessagesInner.md +53 -0
- data/docs/PriceInfo.md +22 -0
- data/docs/Priority.md +4 -5
- 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 +59 -25
- 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 +9 -5
- 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 +15 -6
- data/messente_api.gemspec +5 -5
- data/spec/spec_helper.rb +2 -2
- metadata +33 -39
- 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/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
7
|
Contact: messente@messente.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -61,15 +61,16 @@ module MessenteApi
|
|
61
61
|
form_params = opts[:form_params] || {}
|
62
62
|
|
63
63
|
# http body (model)
|
64
|
-
post_body = opts[:
|
64
|
+
post_body = opts[:debug_body]
|
65
65
|
|
66
66
|
# return_type
|
67
|
-
return_type = opts[:
|
67
|
+
return_type = opts[:debug_return_type] || 'Object'
|
68
68
|
|
69
69
|
# auth_names
|
70
|
-
auth_names = opts[:
|
70
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
71
71
|
|
72
72
|
new_options = opts.merge(
|
73
|
+
:operation => :"ContactsApi.add_contact_to_group",
|
73
74
|
:header_params => header_params,
|
74
75
|
:query_params => query_params,
|
75
76
|
:form_params => form_params,
|
@@ -117,21 +118,25 @@ module MessenteApi
|
|
117
118
|
# HTTP header 'Accept' (if needed)
|
118
119
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
119
120
|
# HTTP header 'Content-Type'
|
120
|
-
|
121
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
122
|
+
if !content_type.nil?
|
123
|
+
header_params['Content-Type'] = content_type
|
124
|
+
end
|
121
125
|
|
122
126
|
# form parameters
|
123
127
|
form_params = opts[:form_params] || {}
|
124
128
|
|
125
129
|
# http body (model)
|
126
|
-
post_body = opts[:
|
130
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(contact_fields)
|
127
131
|
|
128
132
|
# return_type
|
129
|
-
return_type = opts[:
|
133
|
+
return_type = opts[:debug_return_type] || 'ContactEnvelope'
|
130
134
|
|
131
135
|
# auth_names
|
132
|
-
auth_names = opts[:
|
136
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
133
137
|
|
134
138
|
new_options = opts.merge(
|
139
|
+
:operation => :"ContactsApi.create_contact",
|
135
140
|
:header_params => header_params,
|
136
141
|
:query_params => query_params,
|
137
142
|
:form_params => form_params,
|
@@ -183,15 +188,16 @@ module MessenteApi
|
|
183
188
|
form_params = opts[:form_params] || {}
|
184
189
|
|
185
190
|
# http body (model)
|
186
|
-
post_body = opts[:
|
191
|
+
post_body = opts[:debug_body]
|
187
192
|
|
188
193
|
# return_type
|
189
|
-
return_type = opts[:
|
194
|
+
return_type = opts[:debug_return_type]
|
190
195
|
|
191
196
|
# auth_names
|
192
|
-
auth_names = opts[:
|
197
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
193
198
|
|
194
199
|
new_options = opts.merge(
|
200
|
+
:operation => :"ContactsApi.delete_contact",
|
195
201
|
:header_params => header_params,
|
196
202
|
:query_params => query_params,
|
197
203
|
:form_params => form_params,
|
@@ -243,15 +249,16 @@ module MessenteApi
|
|
243
249
|
form_params = opts[:form_params] || {}
|
244
250
|
|
245
251
|
# http body (model)
|
246
|
-
post_body = opts[:
|
252
|
+
post_body = opts[:debug_body]
|
247
253
|
|
248
254
|
# return_type
|
249
|
-
return_type = opts[:
|
255
|
+
return_type = opts[:debug_return_type] || 'ContactEnvelope'
|
250
256
|
|
251
257
|
# auth_names
|
252
|
-
auth_names = opts[:
|
258
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
253
259
|
|
254
260
|
new_options = opts.merge(
|
261
|
+
:operation => :"ContactsApi.fetch_contact",
|
255
262
|
:header_params => header_params,
|
256
263
|
:query_params => query_params,
|
257
264
|
:form_params => form_params,
|
@@ -303,15 +310,16 @@ module MessenteApi
|
|
303
310
|
form_params = opts[:form_params] || {}
|
304
311
|
|
305
312
|
# http body (model)
|
306
|
-
post_body = opts[:
|
313
|
+
post_body = opts[:debug_body]
|
307
314
|
|
308
315
|
# return_type
|
309
|
-
return_type = opts[:
|
316
|
+
return_type = opts[:debug_return_type] || 'GroupListEnvelope'
|
310
317
|
|
311
318
|
# auth_names
|
312
|
-
auth_names = opts[:
|
319
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
313
320
|
|
314
321
|
new_options = opts.merge(
|
322
|
+
:operation => :"ContactsApi.fetch_contact_groups",
|
315
323
|
:header_params => header_params,
|
316
324
|
:query_params => query_params,
|
317
325
|
:form_params => form_params,
|
@@ -360,15 +368,16 @@ module MessenteApi
|
|
360
368
|
form_params = opts[:form_params] || {}
|
361
369
|
|
362
370
|
# http body (model)
|
363
|
-
post_body = opts[:
|
371
|
+
post_body = opts[:debug_body]
|
364
372
|
|
365
373
|
# return_type
|
366
|
-
return_type = opts[:
|
374
|
+
return_type = opts[:debug_return_type] || 'ContactListEnvelope'
|
367
375
|
|
368
376
|
# auth_names
|
369
|
-
auth_names = opts[:
|
377
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
370
378
|
|
371
379
|
new_options = opts.merge(
|
380
|
+
:operation => :"ContactsApi.fetch_contacts",
|
372
381
|
:header_params => header_params,
|
373
382
|
:query_params => query_params,
|
374
383
|
:form_params => form_params,
|
@@ -426,15 +435,16 @@ module MessenteApi
|
|
426
435
|
form_params = opts[:form_params] || {}
|
427
436
|
|
428
437
|
# http body (model)
|
429
|
-
post_body = opts[:
|
438
|
+
post_body = opts[:debug_body]
|
430
439
|
|
431
440
|
# return_type
|
432
|
-
return_type = opts[:
|
441
|
+
return_type = opts[:debug_return_type]
|
433
442
|
|
434
443
|
# auth_names
|
435
|
-
auth_names = opts[:
|
444
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
436
445
|
|
437
446
|
new_options = opts.merge(
|
447
|
+
:operation => :"ContactsApi.remove_contact_from_group",
|
438
448
|
:header_params => header_params,
|
439
449
|
:query_params => query_params,
|
440
450
|
:form_params => form_params,
|
@@ -488,21 +498,25 @@ module MessenteApi
|
|
488
498
|
# HTTP header 'Accept' (if needed)
|
489
499
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
490
500
|
# HTTP header 'Content-Type'
|
491
|
-
|
501
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
502
|
+
if !content_type.nil?
|
503
|
+
header_params['Content-Type'] = content_type
|
504
|
+
end
|
492
505
|
|
493
506
|
# form parameters
|
494
507
|
form_params = opts[:form_params] || {}
|
495
508
|
|
496
509
|
# http body (model)
|
497
|
-
post_body = opts[:
|
510
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(contact_update_fields)
|
498
511
|
|
499
512
|
# return_type
|
500
|
-
return_type = opts[:
|
513
|
+
return_type = opts[:debug_return_type] || 'ContactEnvelope'
|
501
514
|
|
502
515
|
# auth_names
|
503
|
-
auth_names = opts[:
|
516
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
504
517
|
|
505
518
|
new_options = opts.merge(
|
519
|
+
:operation => :"ContactsApi.update_contact",
|
506
520
|
:header_params => header_params,
|
507
521
|
:query_params => query_params,
|
508
522
|
:form_params => form_params,
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
7
|
Contact: messente@messente.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -55,15 +55,16 @@ module MessenteApi
|
|
55
55
|
form_params = opts[:form_params] || {}
|
56
56
|
|
57
57
|
# http body (model)
|
58
|
-
post_body = opts[:
|
58
|
+
post_body = opts[:debug_body]
|
59
59
|
|
60
60
|
# return_type
|
61
|
-
return_type = opts[:
|
61
|
+
return_type = opts[:debug_return_type] || 'DeliveryReportResponse'
|
62
62
|
|
63
63
|
# auth_names
|
64
|
-
auth_names = opts[:
|
64
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
65
65
|
|
66
66
|
new_options = opts.merge(
|
67
|
+
:operation => :"DeliveryReportApi.retrieve_delivery_report",
|
67
68
|
:header_params => header_params,
|
68
69
|
:query_params => query_params,
|
69
70
|
:form_params => form_params,
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
7
|
Contact: messente@messente.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,21 +51,25 @@ module MessenteApi
|
|
51
51
|
# HTTP header 'Accept' (if needed)
|
52
52
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
53
|
# HTTP header 'Content-Type'
|
54
|
-
|
54
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
55
|
+
if !content_type.nil?
|
56
|
+
header_params['Content-Type'] = content_type
|
57
|
+
end
|
55
58
|
|
56
59
|
# form parameters
|
57
60
|
form_params = opts[:form_params] || {}
|
58
61
|
|
59
62
|
# http body (model)
|
60
|
-
post_body = opts[:
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(group_name)
|
61
64
|
|
62
65
|
# return_type
|
63
|
-
return_type = opts[:
|
66
|
+
return_type = opts[:debug_return_type] || 'GroupEnvelope'
|
64
67
|
|
65
68
|
# auth_names
|
66
|
-
auth_names = opts[:
|
69
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
67
70
|
|
68
71
|
new_options = opts.merge(
|
72
|
+
:operation => :"GroupsApi.create_group",
|
69
73
|
:header_params => header_params,
|
70
74
|
:query_params => query_params,
|
71
75
|
:form_params => form_params,
|
@@ -117,15 +121,16 @@ module MessenteApi
|
|
117
121
|
form_params = opts[:form_params] || {}
|
118
122
|
|
119
123
|
# http body (model)
|
120
|
-
post_body = opts[:
|
124
|
+
post_body = opts[:debug_body]
|
121
125
|
|
122
126
|
# return_type
|
123
|
-
return_type = opts[:
|
127
|
+
return_type = opts[:debug_return_type]
|
124
128
|
|
125
129
|
# auth_names
|
126
|
-
auth_names = opts[:
|
130
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
127
131
|
|
128
132
|
new_options = opts.merge(
|
133
|
+
:operation => :"GroupsApi.delete_group",
|
129
134
|
:header_params => header_params,
|
130
135
|
:query_params => query_params,
|
131
136
|
:form_params => form_params,
|
@@ -177,15 +182,16 @@ module MessenteApi
|
|
177
182
|
form_params = opts[:form_params] || {}
|
178
183
|
|
179
184
|
# http body (model)
|
180
|
-
post_body = opts[:
|
185
|
+
post_body = opts[:debug_body]
|
181
186
|
|
182
187
|
# return_type
|
183
|
-
return_type = opts[:
|
188
|
+
return_type = opts[:debug_return_type] || 'GroupEnvelope'
|
184
189
|
|
185
190
|
# auth_names
|
186
|
-
auth_names = opts[:
|
191
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
187
192
|
|
188
193
|
new_options = opts.merge(
|
194
|
+
:operation => :"GroupsApi.fetch_group",
|
189
195
|
:header_params => header_params,
|
190
196
|
:query_params => query_params,
|
191
197
|
:form_params => form_params,
|
@@ -231,15 +237,16 @@ module MessenteApi
|
|
231
237
|
form_params = opts[:form_params] || {}
|
232
238
|
|
233
239
|
# http body (model)
|
234
|
-
post_body = opts[:
|
240
|
+
post_body = opts[:debug_body]
|
235
241
|
|
236
242
|
# return_type
|
237
|
-
return_type = opts[:
|
243
|
+
return_type = opts[:debug_return_type] || 'GroupListEnvelope'
|
238
244
|
|
239
245
|
# auth_names
|
240
|
-
auth_names = opts[:
|
246
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
241
247
|
|
242
248
|
new_options = opts.merge(
|
249
|
+
:operation => :"GroupsApi.fetch_groups",
|
243
250
|
:header_params => header_params,
|
244
251
|
:query_params => query_params,
|
245
252
|
:form_params => form_params,
|
@@ -293,21 +300,25 @@ module MessenteApi
|
|
293
300
|
# HTTP header 'Accept' (if needed)
|
294
301
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
295
302
|
# HTTP header 'Content-Type'
|
296
|
-
|
303
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
304
|
+
if !content_type.nil?
|
305
|
+
header_params['Content-Type'] = content_type
|
306
|
+
end
|
297
307
|
|
298
308
|
# form parameters
|
299
309
|
form_params = opts[:form_params] || {}
|
300
310
|
|
301
311
|
# http body (model)
|
302
|
-
post_body = opts[:
|
312
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(group_name)
|
303
313
|
|
304
314
|
# return_type
|
305
|
-
return_type = opts[:
|
315
|
+
return_type = opts[:debug_return_type] || 'GroupEnvelope'
|
306
316
|
|
307
317
|
# auth_names
|
308
|
-
auth_names = opts[:
|
318
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
309
319
|
|
310
320
|
new_options = opts.merge(
|
321
|
+
:operation => :"GroupsApi.update_group",
|
311
322
|
:header_params => header_params,
|
312
323
|
:query_params => query_params,
|
313
324
|
:form_params => form_params,
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
7
|
Contact: messente@messente.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,21 +51,25 @@ module MessenteApi
|
|
51
51
|
# HTTP header 'Accept' (if needed)
|
52
52
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
53
|
# HTTP header 'Content-Type'
|
54
|
-
|
54
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
55
|
+
if !content_type.nil?
|
56
|
+
header_params['Content-Type'] = content_type
|
57
|
+
end
|
55
58
|
|
56
59
|
# form parameters
|
57
60
|
form_params = opts[:form_params] || {}
|
58
61
|
|
59
62
|
# http body (model)
|
60
|
-
post_body = opts[:
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(numbers_to_investigate)
|
61
64
|
|
62
65
|
# return_type
|
63
|
-
return_type = opts[:
|
66
|
+
return_type = opts[:debug_return_type] || 'SyncNumberLookupSuccess'
|
64
67
|
|
65
68
|
# auth_names
|
66
|
-
auth_names = opts[:
|
69
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
67
70
|
|
68
71
|
new_options = opts.merge(
|
72
|
+
:operation => :"NumberLookupApi.fetch_info",
|
69
73
|
:header_params => header_params,
|
70
74
|
:query_params => query_params,
|
71
75
|
:form_params => form_params,
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
7
|
Contact: messente@messente.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -55,15 +55,16 @@ module MessenteApi
|
|
55
55
|
form_params = opts[:form_params] || {}
|
56
56
|
|
57
57
|
# http body (model)
|
58
|
-
post_body = opts[:
|
58
|
+
post_body = opts[:debug_body]
|
59
59
|
|
60
60
|
# return_type
|
61
|
-
return_type = opts[:
|
61
|
+
return_type = opts[:debug_return_type] || 'Object'
|
62
62
|
|
63
63
|
# auth_names
|
64
|
-
auth_names = opts[:
|
64
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
65
65
|
|
66
66
|
new_options = opts.merge(
|
67
|
+
:operation => :"OmnimessageApi.cancel_scheduled_message",
|
67
68
|
:header_params => header_params,
|
68
69
|
:query_params => query_params,
|
69
70
|
:form_params => form_params,
|
@@ -111,21 +112,25 @@ module MessenteApi
|
|
111
112
|
# HTTP header 'Accept' (if needed)
|
112
113
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
113
114
|
# HTTP header 'Content-Type'
|
114
|
-
|
115
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
116
|
+
if !content_type.nil?
|
117
|
+
header_params['Content-Type'] = content_type
|
118
|
+
end
|
115
119
|
|
116
120
|
# form parameters
|
117
121
|
form_params = opts[:form_params] || {}
|
118
122
|
|
119
123
|
# http body (model)
|
120
|
-
post_body = opts[:
|
124
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(omnimessage)
|
121
125
|
|
122
126
|
# return_type
|
123
|
-
return_type = opts[:
|
127
|
+
return_type = opts[:debug_return_type] || 'OmniMessageCreateSuccessResponse'
|
124
128
|
|
125
129
|
# auth_names
|
126
|
-
auth_names = opts[:
|
130
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
127
131
|
|
128
132
|
new_options = opts.merge(
|
133
|
+
:operation => :"OmnimessageApi.send_omnimessage",
|
129
134
|
:header_params => header_params,
|
130
135
|
:query_params => query_params,
|
131
136
|
:form_params => form_params,
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
7
|
Contact: messente@messente.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,21 +51,25 @@ module MessenteApi
|
|
51
51
|
# HTTP header 'Accept' (if needed)
|
52
52
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
53
|
# HTTP header 'Content-Type'
|
54
|
-
|
54
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
55
|
+
if !content_type.nil?
|
56
|
+
header_params['Content-Type'] = content_type
|
57
|
+
end
|
55
58
|
|
56
59
|
# form parameters
|
57
60
|
form_params = opts[:form_params] || {}
|
58
61
|
|
59
62
|
# http body (model)
|
60
|
-
post_body = opts[:
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(statistics_report_settings)
|
61
64
|
|
62
65
|
# return_type
|
63
|
-
return_type = opts[:
|
66
|
+
return_type = opts[:debug_return_type] || 'StatisticsReportSuccess'
|
64
67
|
|
65
68
|
# auth_names
|
66
|
-
auth_names = opts[:
|
69
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
67
70
|
|
68
71
|
new_options = opts.merge(
|
72
|
+
:operation => :"StatisticsApi.create_statistics_report",
|
69
73
|
:header_params => header_params,
|
70
74
|
:query_params => query_params,
|
71
75
|
:form_params => form_params,
|