messente_api 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +22 -22
- data/docs/BlacklistApi.md +12 -12
- data/docs/ContactFields.md +9 -9
- data/docs/ContactListEnvelope.md +1 -1
- data/docs/ContactUpdateFields.md +9 -9
- data/docs/ContactsApi.md +30 -30
- data/docs/DeliveryReportApi.md +6 -6
- data/docs/DeliveryReportResponse.md +2 -2
- data/docs/DeliveryResult.md +1 -1
- data/docs/ErrorItemOmnichannel.md +1 -1
- data/docs/ErrorItemPhonebook.md +1 -1
- data/docs/ErrorOmnichannel.md +1 -1
- data/docs/ErrorPhonebook.md +1 -1
- data/docs/FetchBlacklistSuccess.md +1 -1
- data/docs/GroupListEnvelope.md +1 -1
- data/docs/GroupName.md +1 -1
- data/docs/GroupResponseFields.md +4 -4
- data/docs/GroupsApi.md +21 -21
- data/docs/OmniMessageCreateSuccessResponse.md +2 -2
- data/docs/Omnimessage.md +2 -2
- data/docs/OmnimessageApi.md +8 -8
- data/docs/SMS.md +2 -2
- data/docs/Viber.md +2 -2
- data/docs/WhatsApp.md +1 -1
- data/docs/WhatsAppText.md +1 -1
- data/lib/messente_api.rb +1 -1
- data/lib/messente_api/api/blacklist_api.rb +11 -11
- data/lib/messente_api/api/contacts_api.rb +31 -31
- data/lib/messente_api/api/delivery_report_api.rb +6 -6
- data/lib/messente_api/api/groups_api.rb +22 -22
- data/lib/messente_api/api/omnimessage_api.rb +7 -7
- data/lib/messente_api/api_client.rb +1 -1
- data/lib/messente_api/api_error.rb +1 -1
- data/lib/messente_api/configuration.rb +1 -1
- data/lib/messente_api/models/channel.rb +1 -1
- data/lib/messente_api/models/contact_envelope.rb +2 -1
- data/lib/messente_api/models/contact_fields.rb +11 -1
- data/lib/messente_api/models/contact_list_envelope.rb +3 -1
- data/lib/messente_api/models/contact_update_fields.rb +11 -1
- data/lib/messente_api/models/delivery_report_response.rb +4 -3
- data/lib/messente_api/models/delivery_result.rb +3 -2
- data/lib/messente_api/models/error_code_omnichannel.rb +1 -1
- data/lib/messente_api/models/error_code_omnichannel_machine.rb +1 -1
- data/lib/messente_api/models/error_code_phonebook.rb +1 -1
- data/lib/messente_api/models/error_item_omnichannel.rb +3 -2
- data/lib/messente_api/models/error_item_phonebook.rb +3 -2
- data/lib/messente_api/models/error_omnichannel.rb +3 -1
- data/lib/messente_api/models/error_phonebook.rb +3 -1
- data/lib/messente_api/models/error_title_omnichannel.rb +1 -1
- data/lib/messente_api/models/error_title_phonebook.rb +1 -1
- data/lib/messente_api/models/fetch_blacklist_success.rb +3 -1
- data/lib/messente_api/models/group_envelope.rb +2 -1
- data/lib/messente_api/models/group_list_envelope.rb +3 -1
- data/lib/messente_api/models/group_name.rb +3 -1
- data/lib/messente_api/models/group_response_fields.rb +6 -3
- data/lib/messente_api/models/message_result.rb +2 -1
- data/lib/messente_api/models/number_to_blacklist.rb +2 -1
- data/lib/messente_api/models/omni_message_create_success_response.rb +4 -3
- data/lib/messente_api/models/omnimessage.rb +4 -2
- data/lib/messente_api/models/sms.rb +3 -2
- data/lib/messente_api/models/status.rb +1 -1
- data/lib/messente_api/models/text_store.rb +1 -1
- data/lib/messente_api/models/viber.rb +3 -2
- data/lib/messente_api/models/whats_app.rb +3 -2
- data/lib/messente_api/models/whats_app_audio.rb +2 -1
- data/lib/messente_api/models/whats_app_document.rb +2 -1
- data/lib/messente_api/models/whats_app_image.rb +2 -1
- data/lib/messente_api/models/whats_app_text.rb +3 -2
- data/lib/messente_api/version.rb +2 -2
- data/messente_api.gemspec +1 -1
- data/spec/api/blacklist_api_spec.rb +5 -5
- data/spec/api/contacts_api_spec.rb +12 -12
- data/spec/api/delivery_report_api_spec.rb +3 -3
- data/spec/api/groups_api_spec.rb +9 -9
- data/spec/api/omnimessage_api_spec.rb +4 -4
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/channel_spec.rb +1 -1
- data/spec/models/contact_envelope_spec.rb +1 -1
- data/spec/models/contact_fields_spec.rb +1 -1
- data/spec/models/contact_list_envelope_spec.rb +1 -1
- data/spec/models/contact_update_fields_spec.rb +1 -1
- data/spec/models/delivery_report_response_spec.rb +1 -1
- data/spec/models/delivery_result_spec.rb +1 -1
- data/spec/models/error_code_omnichannel_machine_spec.rb +1 -1
- data/spec/models/error_code_omnichannel_spec.rb +1 -1
- data/spec/models/error_code_phonebook_spec.rb +1 -1
- data/spec/models/error_item_omnichannel_spec.rb +1 -1
- data/spec/models/error_item_phonebook_spec.rb +1 -1
- data/spec/models/error_omnichannel_spec.rb +1 -1
- data/spec/models/error_phonebook_spec.rb +1 -1
- data/spec/models/error_title_omnichannel_spec.rb +1 -1
- data/spec/models/error_title_phonebook_spec.rb +1 -1
- data/spec/models/fetch_blacklist_success_spec.rb +1 -1
- data/spec/models/group_envelope_spec.rb +1 -1
- data/spec/models/group_list_envelope_spec.rb +1 -1
- data/spec/models/group_name_spec.rb +1 -1
- data/spec/models/group_response_fields_spec.rb +1 -1
- data/spec/models/message_result_spec.rb +1 -1
- data/spec/models/number_to_blacklist_spec.rb +1 -1
- data/spec/models/omni_message_create_success_response_spec.rb +1 -1
- data/spec/models/omnimessage_spec.rb +1 -1
- data/spec/models/sms_spec.rb +1 -1
- data/spec/models/status_spec.rb +1 -1
- data/spec/models/text_store_spec.rb +1 -1
- data/spec/models/viber_spec.rb +1 -1
- data/spec/models/whats_app_audio_spec.rb +1 -1
- data/spec/models/whats_app_document_spec.rb +1 -1
- data/spec/models/whats_app_image_spec.rb +1 -1
- data/spec/models/whats_app_spec.rb +1 -1
- data/spec/models/whats_app_text_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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: 1.0.
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
7
7
|
Contact: messente@messente.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.0.0
|
@@ -19,8 +19,8 @@ module MessenteApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Adds a contact to a group
|
23
|
-
# @param group_id [String] String in
|
22
|
+
# Adds a contact to a group
|
23
|
+
# @param group_id [String] String in UUID format
|
24
24
|
# @param phone [String] A phone number
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [Object]
|
@@ -29,8 +29,8 @@ module MessenteApi
|
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
# Adds a contact to a group
|
33
|
-
# @param group_id [String] String in
|
32
|
+
# Adds a contact to a group
|
33
|
+
# @param group_id [String] String in UUID format
|
34
34
|
# @param phone [String] A phone number
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
@@ -47,7 +47,7 @@ module MessenteApi
|
|
47
47
|
fail ArgumentError, "Missing the required parameter 'phone' when calling ContactsApi.add_contact_to_group"
|
48
48
|
end
|
49
49
|
# resource path
|
50
|
-
local_var_path = '/groups/{groupId}/contacts/{phone}'.sub('{' + 'groupId' + '}', group_id.to_s).sub('{' + 'phone' + '}', phone.to_s)
|
50
|
+
local_var_path = '/phonebook/groups/{groupId}/contacts/{phone}'.sub('{' + 'groupId' + '}', group_id.to_s).sub('{' + 'phone' + '}', phone.to_s)
|
51
51
|
|
52
52
|
# query parameters
|
53
53
|
query_params = opts[:query_params] || {}
|
@@ -85,7 +85,7 @@ module MessenteApi
|
|
85
85
|
return data, status_code, headers
|
86
86
|
end
|
87
87
|
|
88
|
-
# Creates a new contact
|
88
|
+
# Creates a new contact
|
89
89
|
# @param contact_fields [ContactFields]
|
90
90
|
# @param [Hash] opts the optional parameters
|
91
91
|
# @return [ContactEnvelope]
|
@@ -94,7 +94,7 @@ module MessenteApi
|
|
94
94
|
data
|
95
95
|
end
|
96
96
|
|
97
|
-
# Creates a new contact
|
97
|
+
# Creates a new contact
|
98
98
|
# @param contact_fields [ContactFields]
|
99
99
|
# @param [Hash] opts the optional parameters
|
100
100
|
# @return [Array<(ContactEnvelope, Integer, Hash)>] ContactEnvelope data, response status code and response headers
|
@@ -107,7 +107,7 @@ module MessenteApi
|
|
107
107
|
fail ArgumentError, "Missing the required parameter 'contact_fields' when calling ContactsApi.create_contact"
|
108
108
|
end
|
109
109
|
# resource path
|
110
|
-
local_var_path = '/contacts'
|
110
|
+
local_var_path = '/phonebook/contacts'
|
111
111
|
|
112
112
|
# query parameters
|
113
113
|
query_params = opts[:query_params] || {}
|
@@ -147,7 +147,7 @@ module MessenteApi
|
|
147
147
|
return data, status_code, headers
|
148
148
|
end
|
149
149
|
|
150
|
-
# Deletes a contact
|
150
|
+
# Deletes a contact
|
151
151
|
# @param phone [String] A phone number
|
152
152
|
# @param [Hash] opts the optional parameters
|
153
153
|
# @return [nil]
|
@@ -156,7 +156,7 @@ module MessenteApi
|
|
156
156
|
nil
|
157
157
|
end
|
158
158
|
|
159
|
-
# Deletes a contact
|
159
|
+
# Deletes a contact
|
160
160
|
# @param phone [String] A phone number
|
161
161
|
# @param [Hash] opts the optional parameters
|
162
162
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -169,7 +169,7 @@ module MessenteApi
|
|
169
169
|
fail ArgumentError, "Missing the required parameter 'phone' when calling ContactsApi.delete_contact"
|
170
170
|
end
|
171
171
|
# resource path
|
172
|
-
local_var_path = '/contacts/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
|
172
|
+
local_var_path = '/phonebook/contacts/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
|
173
173
|
|
174
174
|
# query parameters
|
175
175
|
query_params = opts[:query_params] || {}
|
@@ -207,7 +207,7 @@ module MessenteApi
|
|
207
207
|
return data, status_code, headers
|
208
208
|
end
|
209
209
|
|
210
|
-
# Lists a contact
|
210
|
+
# Lists a contact
|
211
211
|
# @param phone [String] A phone number
|
212
212
|
# @param [Hash] opts the optional parameters
|
213
213
|
# @return [ContactEnvelope]
|
@@ -216,7 +216,7 @@ module MessenteApi
|
|
216
216
|
data
|
217
217
|
end
|
218
218
|
|
219
|
-
# Lists a contact
|
219
|
+
# Lists a contact
|
220
220
|
# @param phone [String] A phone number
|
221
221
|
# @param [Hash] opts the optional parameters
|
222
222
|
# @return [Array<(ContactEnvelope, Integer, Hash)>] ContactEnvelope data, response status code and response headers
|
@@ -229,7 +229,7 @@ module MessenteApi
|
|
229
229
|
fail ArgumentError, "Missing the required parameter 'phone' when calling ContactsApi.fetch_contact"
|
230
230
|
end
|
231
231
|
# resource path
|
232
|
-
local_var_path = '/contacts/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
|
232
|
+
local_var_path = '/phonebook/contacts/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
|
233
233
|
|
234
234
|
# query parameters
|
235
235
|
query_params = opts[:query_params] || {}
|
@@ -267,7 +267,7 @@ module MessenteApi
|
|
267
267
|
return data, status_code, headers
|
268
268
|
end
|
269
269
|
|
270
|
-
# Lists groups of a contact
|
270
|
+
# Lists groups of a contact
|
271
271
|
# @param phone [String] A phone number
|
272
272
|
# @param [Hash] opts the optional parameters
|
273
273
|
# @return [GroupListEnvelope]
|
@@ -276,7 +276,7 @@ module MessenteApi
|
|
276
276
|
data
|
277
277
|
end
|
278
278
|
|
279
|
-
# Lists groups of a contact
|
279
|
+
# Lists groups of a contact
|
280
280
|
# @param phone [String] A phone number
|
281
281
|
# @param [Hash] opts the optional parameters
|
282
282
|
# @return [Array<(GroupListEnvelope, Integer, Hash)>] GroupListEnvelope data, response status code and response headers
|
@@ -289,7 +289,7 @@ module MessenteApi
|
|
289
289
|
fail ArgumentError, "Missing the required parameter 'phone' when calling ContactsApi.fetch_contact_groups"
|
290
290
|
end
|
291
291
|
# resource path
|
292
|
-
local_var_path = '/contacts/{phone}/groups'.sub('{' + 'phone' + '}', phone.to_s)
|
292
|
+
local_var_path = '/phonebook/contacts/{phone}/groups'.sub('{' + 'phone' + '}', phone.to_s)
|
293
293
|
|
294
294
|
# query parameters
|
295
295
|
query_params = opts[:query_params] || {}
|
@@ -327,25 +327,25 @@ module MessenteApi
|
|
327
327
|
return data, status_code, headers
|
328
328
|
end
|
329
329
|
|
330
|
-
# Returns all contacts
|
330
|
+
# Returns all contacts
|
331
331
|
# @param [Hash] opts the optional parameters
|
332
|
-
# @option opts [Array<String>] :group_ids Optional one or many group id strings in
|
332
|
+
# @option opts [Array<String>] :group_ids Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\"
|
333
333
|
# @return [ContactListEnvelope]
|
334
334
|
def fetch_contacts(opts = {})
|
335
335
|
data, _status_code, _headers = fetch_contacts_with_http_info(opts)
|
336
336
|
data
|
337
337
|
end
|
338
338
|
|
339
|
-
# Returns all contacts
|
339
|
+
# Returns all contacts
|
340
340
|
# @param [Hash] opts the optional parameters
|
341
|
-
# @option opts [Array<String>] :group_ids Optional one or many group id strings in
|
341
|
+
# @option opts [Array<String>] :group_ids Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\"
|
342
342
|
# @return [Array<(ContactListEnvelope, Integer, Hash)>] ContactListEnvelope data, response status code and response headers
|
343
343
|
def fetch_contacts_with_http_info(opts = {})
|
344
344
|
if @api_client.config.debugging
|
345
345
|
@api_client.config.logger.debug 'Calling API: ContactsApi.fetch_contacts ...'
|
346
346
|
end
|
347
347
|
# resource path
|
348
|
-
local_var_path = '/contacts'
|
348
|
+
local_var_path = '/phonebook/contacts'
|
349
349
|
|
350
350
|
# query parameters
|
351
351
|
query_params = opts[:query_params] || {}
|
@@ -384,8 +384,8 @@ module MessenteApi
|
|
384
384
|
return data, status_code, headers
|
385
385
|
end
|
386
386
|
|
387
|
-
# Removes a contact from a group
|
388
|
-
# @param group_id [String] String in
|
387
|
+
# Removes a contact from a group
|
388
|
+
# @param group_id [String] String in UUID format
|
389
389
|
# @param phone [String] A phone number
|
390
390
|
# @param [Hash] opts the optional parameters
|
391
391
|
# @return [nil]
|
@@ -394,8 +394,8 @@ module MessenteApi
|
|
394
394
|
nil
|
395
395
|
end
|
396
396
|
|
397
|
-
# Removes a contact from a group
|
398
|
-
# @param group_id [String] String in
|
397
|
+
# Removes a contact from a group
|
398
|
+
# @param group_id [String] String in UUID format
|
399
399
|
# @param phone [String] A phone number
|
400
400
|
# @param [Hash] opts the optional parameters
|
401
401
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -412,7 +412,7 @@ module MessenteApi
|
|
412
412
|
fail ArgumentError, "Missing the required parameter 'phone' when calling ContactsApi.remove_contact_from_group"
|
413
413
|
end
|
414
414
|
# resource path
|
415
|
-
local_var_path = '/groups/{groupId}/contacts/{phone}'.sub('{' + 'groupId' + '}', group_id.to_s).sub('{' + 'phone' + '}', phone.to_s)
|
415
|
+
local_var_path = '/phonebook/groups/{groupId}/contacts/{phone}'.sub('{' + 'groupId' + '}', group_id.to_s).sub('{' + 'phone' + '}', phone.to_s)
|
416
416
|
|
417
417
|
# query parameters
|
418
418
|
query_params = opts[:query_params] || {}
|
@@ -450,7 +450,7 @@ module MessenteApi
|
|
450
450
|
return data, status_code, headers
|
451
451
|
end
|
452
452
|
|
453
|
-
# Updates a contact
|
453
|
+
# Updates a contact
|
454
454
|
# @param phone [String] A phone number
|
455
455
|
# @param contact_update_fields [ContactUpdateFields]
|
456
456
|
# @param [Hash] opts the optional parameters
|
@@ -460,7 +460,7 @@ module MessenteApi
|
|
460
460
|
data
|
461
461
|
end
|
462
462
|
|
463
|
-
# Updates a contact
|
463
|
+
# Updates a contact
|
464
464
|
# @param phone [String] A phone number
|
465
465
|
# @param contact_update_fields [ContactUpdateFields]
|
466
466
|
# @param [Hash] opts the optional parameters
|
@@ -478,7 +478,7 @@ module MessenteApi
|
|
478
478
|
fail ArgumentError, "Missing the required parameter 'contact_update_fields' when calling ContactsApi.update_contact"
|
479
479
|
end
|
480
480
|
# resource path
|
481
|
-
local_var_path = '/contacts/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
|
481
|
+
local_var_path = '/phonebook/contacts/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
|
482
482
|
|
483
483
|
# query parameters
|
484
484
|
query_params = opts[:query_params] || {}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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: 1.0.
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
7
7
|
Contact: messente@messente.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.0.0
|
@@ -19,8 +19,8 @@ module MessenteApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Retrieves the delivery report for the Omnimessage
|
23
|
-
# @param omnimessage_id [String] UUID of the
|
22
|
+
# Retrieves the delivery report for the Omnimessage
|
23
|
+
# @param omnimessage_id [String] UUID of the omnimessage to for which the delivery report is to be retrieved
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [DeliveryReportResponse]
|
26
26
|
def retrieve_delivery_report(omnimessage_id, opts = {})
|
@@ -28,8 +28,8 @@ module MessenteApi
|
|
28
28
|
data
|
29
29
|
end
|
30
30
|
|
31
|
-
# Retrieves the delivery report for the Omnimessage
|
32
|
-
# @param omnimessage_id [String] UUID of the
|
31
|
+
# Retrieves the delivery report for the Omnimessage
|
32
|
+
# @param omnimessage_id [String] UUID of the omnimessage to for which the delivery report is to be retrieved
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [Array<(DeliveryReportResponse, Integer, Hash)>] DeliveryReportResponse data, response status code and response headers
|
35
35
|
def retrieve_delivery_report_with_http_info(omnimessage_id, opts = {})
|
@@ -49,7 +49,7 @@ module MessenteApi
|
|
49
49
|
# header parameters
|
50
50
|
header_params = opts[:header_params] || {}
|
51
51
|
# HTTP header 'Accept' (if needed)
|
52
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
53
|
|
54
54
|
# form parameters
|
55
55
|
form_params = opts[:form_params] || {}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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: 1.0.
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
7
7
|
Contact: messente@messente.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.0.0
|
@@ -19,7 +19,7 @@ module MessenteApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Creates a new group with the provided name
|
22
|
+
# Creates a new group with the provided name
|
23
23
|
# @param group_name [GroupName]
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [GroupEnvelope]
|
@@ -28,7 +28,7 @@ module MessenteApi
|
|
28
28
|
data
|
29
29
|
end
|
30
30
|
|
31
|
-
# Creates a new group with the provided name
|
31
|
+
# Creates a new group with the provided name
|
32
32
|
# @param group_name [GroupName]
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [Array<(GroupEnvelope, Integer, Hash)>] GroupEnvelope data, response status code and response headers
|
@@ -41,7 +41,7 @@ module MessenteApi
|
|
41
41
|
fail ArgumentError, "Missing the required parameter 'group_name' when calling GroupsApi.create_group"
|
42
42
|
end
|
43
43
|
# resource path
|
44
|
-
local_var_path = '/groups'
|
44
|
+
local_var_path = '/phonebook/groups'
|
45
45
|
|
46
46
|
# query parameters
|
47
47
|
query_params = opts[:query_params] || {}
|
@@ -81,8 +81,8 @@ module MessenteApi
|
|
81
81
|
return data, status_code, headers
|
82
82
|
end
|
83
83
|
|
84
|
-
# Deletes a group
|
85
|
-
# @param group_id [String] String in
|
84
|
+
# Deletes a group
|
85
|
+
# @param group_id [String] String in UUID format
|
86
86
|
# @param [Hash] opts the optional parameters
|
87
87
|
# @return [nil]
|
88
88
|
def delete_group(group_id, opts = {})
|
@@ -90,8 +90,8 @@ module MessenteApi
|
|
90
90
|
nil
|
91
91
|
end
|
92
92
|
|
93
|
-
# Deletes a group
|
94
|
-
# @param group_id [String] String in
|
93
|
+
# Deletes a group
|
94
|
+
# @param group_id [String] String in UUID format
|
95
95
|
# @param [Hash] opts the optional parameters
|
96
96
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
97
97
|
def delete_group_with_http_info(group_id, opts = {})
|
@@ -103,7 +103,7 @@ module MessenteApi
|
|
103
103
|
fail ArgumentError, "Missing the required parameter 'group_id' when calling GroupsApi.delete_group"
|
104
104
|
end
|
105
105
|
# resource path
|
106
|
-
local_var_path = '/groups/{groupId}'.sub('{' + 'groupId' + '}', group_id.to_s)
|
106
|
+
local_var_path = '/phonebook/groups/{groupId}'.sub('{' + 'groupId' + '}', group_id.to_s)
|
107
107
|
|
108
108
|
# query parameters
|
109
109
|
query_params = opts[:query_params] || {}
|
@@ -141,8 +141,8 @@ module MessenteApi
|
|
141
141
|
return data, status_code, headers
|
142
142
|
end
|
143
143
|
|
144
|
-
# Lists a group
|
145
|
-
# @param group_id [String] String in
|
144
|
+
# Lists a group
|
145
|
+
# @param group_id [String] String in UUID format
|
146
146
|
# @param [Hash] opts the optional parameters
|
147
147
|
# @return [GroupEnvelope]
|
148
148
|
def fetch_group(group_id, opts = {})
|
@@ -150,8 +150,8 @@ module MessenteApi
|
|
150
150
|
data
|
151
151
|
end
|
152
152
|
|
153
|
-
# Lists a group
|
154
|
-
# @param group_id [String] String in
|
153
|
+
# Lists a group
|
154
|
+
# @param group_id [String] String in UUID format
|
155
155
|
# @param [Hash] opts the optional parameters
|
156
156
|
# @return [Array<(GroupEnvelope, Integer, Hash)>] GroupEnvelope data, response status code and response headers
|
157
157
|
def fetch_group_with_http_info(group_id, opts = {})
|
@@ -163,7 +163,7 @@ module MessenteApi
|
|
163
163
|
fail ArgumentError, "Missing the required parameter 'group_id' when calling GroupsApi.fetch_group"
|
164
164
|
end
|
165
165
|
# resource path
|
166
|
-
local_var_path = '/groups/{groupId}'.sub('{' + 'groupId' + '}', group_id.to_s)
|
166
|
+
local_var_path = '/phonebook/groups/{groupId}'.sub('{' + 'groupId' + '}', group_id.to_s)
|
167
167
|
|
168
168
|
# query parameters
|
169
169
|
query_params = opts[:query_params] || {}
|
@@ -201,7 +201,7 @@ module MessenteApi
|
|
201
201
|
return data, status_code, headers
|
202
202
|
end
|
203
203
|
|
204
|
-
# Returns all groups
|
204
|
+
# Returns all groups
|
205
205
|
# @param [Hash] opts the optional parameters
|
206
206
|
# @return [GroupListEnvelope]
|
207
207
|
def fetch_groups(opts = {})
|
@@ -209,7 +209,7 @@ module MessenteApi
|
|
209
209
|
data
|
210
210
|
end
|
211
211
|
|
212
|
-
# Returns all groups
|
212
|
+
# Returns all groups
|
213
213
|
# @param [Hash] opts the optional parameters
|
214
214
|
# @return [Array<(GroupListEnvelope, Integer, Hash)>] GroupListEnvelope data, response status code and response headers
|
215
215
|
def fetch_groups_with_http_info(opts = {})
|
@@ -217,7 +217,7 @@ module MessenteApi
|
|
217
217
|
@api_client.config.logger.debug 'Calling API: GroupsApi.fetch_groups ...'
|
218
218
|
end
|
219
219
|
# resource path
|
220
|
-
local_var_path = '/groups'
|
220
|
+
local_var_path = '/phonebook/groups'
|
221
221
|
|
222
222
|
# query parameters
|
223
223
|
query_params = opts[:query_params] || {}
|
@@ -255,8 +255,8 @@ module MessenteApi
|
|
255
255
|
return data, status_code, headers
|
256
256
|
end
|
257
257
|
|
258
|
-
# Updates a group with the provided name
|
259
|
-
# @param group_id [String] String in
|
258
|
+
# Updates a group with the provided name
|
259
|
+
# @param group_id [String] String in UUID format
|
260
260
|
# @param group_name [GroupName]
|
261
261
|
# @param [Hash] opts the optional parameters
|
262
262
|
# @return [GroupEnvelope]
|
@@ -265,8 +265,8 @@ module MessenteApi
|
|
265
265
|
data
|
266
266
|
end
|
267
267
|
|
268
|
-
# Updates a group with the provided name
|
269
|
-
# @param group_id [String] String in
|
268
|
+
# Updates a group with the provided name
|
269
|
+
# @param group_id [String] String in UUID format
|
270
270
|
# @param group_name [GroupName]
|
271
271
|
# @param [Hash] opts the optional parameters
|
272
272
|
# @return [Array<(GroupEnvelope, Integer, Hash)>] GroupEnvelope data, response status code and response headers
|
@@ -283,7 +283,7 @@ module MessenteApi
|
|
283
283
|
fail ArgumentError, "Missing the required parameter 'group_name' when calling GroupsApi.update_group"
|
284
284
|
end
|
285
285
|
# resource path
|
286
|
-
local_var_path = '/groups/{groupId}'.sub('{' + 'groupId' + '}', group_id.to_s)
|
286
|
+
local_var_path = '/phonebook/groups/{groupId}'.sub('{' + 'groupId' + '}', group_id.to_s)
|
287
287
|
|
288
288
|
# query parameters
|
289
289
|
query_params = opts[:query_params] || {}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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: 1.0.
|
6
|
+
The version of the OpenAPI document: 1.0.2
|
7
7
|
Contact: messente@messente.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.0.0
|
@@ -19,8 +19,8 @@ module MessenteApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Cancels a scheduled Omnimessage
|
23
|
-
# @param omnimessage_id [String] UUID of the scheduled
|
22
|
+
# Cancels a scheduled Omnimessage
|
23
|
+
# @param omnimessage_id [String] UUID of the scheduled omnimessage to be cancelled
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [nil]
|
26
26
|
def cancel_scheduled_message(omnimessage_id, opts = {})
|
@@ -28,8 +28,8 @@ module MessenteApi
|
|
28
28
|
nil
|
29
29
|
end
|
30
30
|
|
31
|
-
# Cancels a scheduled Omnimessage
|
32
|
-
# @param omnimessage_id [String] UUID of the scheduled
|
31
|
+
# Cancels a scheduled Omnimessage
|
32
|
+
# @param omnimessage_id [String] UUID of the scheduled omnimessage to be cancelled
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
35
35
|
def cancel_scheduled_message_with_http_info(omnimessage_id, opts = {})
|
@@ -79,7 +79,7 @@ module MessenteApi
|
|
79
79
|
return data, status_code, headers
|
80
80
|
end
|
81
81
|
|
82
|
-
# Sends an Omnimessage
|
82
|
+
# Sends an Omnimessage
|
83
83
|
# @param omnimessage [Omnimessage] Omnimessage to be sent
|
84
84
|
# @param [Hash] opts the optional parameters
|
85
85
|
# @return [OmniMessageCreateSuccessResponse]
|
@@ -88,7 +88,7 @@ module MessenteApi
|
|
88
88
|
data
|
89
89
|
end
|
90
90
|
|
91
|
-
# Sends an Omnimessage
|
91
|
+
# Sends an Omnimessage
|
92
92
|
# @param omnimessage [Omnimessage] Omnimessage to be sent
|
93
93
|
# @param [Hash] opts the optional parameters
|
94
94
|
# @return [Array<(OmniMessageCreateSuccessResponse, Integer, Hash)>] OmniMessageCreateSuccessResponse data, response status code and response headers
|