messente_api 1.0.2 → 1.0.3
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 +5 -5
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/docs/BlacklistApi.md +3 -3
- data/docs/ContactsApi.md +11 -11
- data/docs/GroupsApi.md +5 -5
- data/lib/messente_api.rb +1 -1
- data/lib/messente_api/api/blacklist_api.rb +4 -4
- data/lib/messente_api/api/contacts_api.rb +8 -8
- data/lib/messente_api/api/delivery_report_api.rb +3 -3
- data/lib/messente_api/api/groups_api.rb +5 -5
- data/lib/messente_api/api/omnimessage_api.rb +3 -3
- data/lib/messente_api/api_client.rb +2 -3
- data/lib/messente_api/api_error.rb +1 -1
- data/lib/messente_api/configuration.rb +2 -5
- data/lib/messente_api/models/channel.rb +1 -1
- data/lib/messente_api/models/contact_envelope.rb +1 -1
- data/lib/messente_api/models/contact_fields.rb +1 -1
- data/lib/messente_api/models/contact_list_envelope.rb +1 -1
- data/lib/messente_api/models/contact_update_fields.rb +1 -1
- data/lib/messente_api/models/delivery_report_response.rb +1 -1
- data/lib/messente_api/models/delivery_result.rb +1 -1
- 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 +1 -1
- data/lib/messente_api/models/error_item_phonebook.rb +1 -1
- data/lib/messente_api/models/error_omnichannel.rb +1 -1
- data/lib/messente_api/models/error_phonebook.rb +1 -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 +1 -1
- data/lib/messente_api/models/group_envelope.rb +1 -1
- data/lib/messente_api/models/group_list_envelope.rb +1 -1
- data/lib/messente_api/models/group_name.rb +1 -1
- data/lib/messente_api/models/group_response_fields.rb +1 -1
- data/lib/messente_api/models/message_result.rb +1 -1
- data/lib/messente_api/models/number_to_blacklist.rb +1 -1
- data/lib/messente_api/models/omni_message_create_success_response.rb +1 -1
- data/lib/messente_api/models/omnimessage.rb +1 -1
- data/lib/messente_api/models/sms.rb +1 -1
- 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 +1 -1
- data/lib/messente_api/models/whats_app.rb +1 -1
- data/lib/messente_api/models/whats_app_audio.rb +1 -1
- data/lib/messente_api/models/whats_app_document.rb +1 -1
- data/lib/messente_api/models/whats_app_image.rb +1 -1
- data/lib/messente_api/models/whats_app_text.rb +1 -1
- data/lib/messente_api/version.rb +2 -2
- data/messente_api.gemspec +3 -3
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +17 -96
- data/spec/api/blacklist_api_spec.rb +0 -78
- data/spec/api/contacts_api_spec.rb +0 -126
- data/spec/api/delivery_report_api_spec.rb +0 -46
- data/spec/api/groups_api_spec.rb +0 -90
- data/spec/api/omnimessage_api_spec.rb +0 -57
- data/spec/models/channel_spec.rb +0 -35
- data/spec/models/contact_envelope_spec.rb +0 -41
- data/spec/models/contact_fields_spec.rb +0 -95
- data/spec/models/contact_list_envelope_spec.rb +0 -41
- data/spec/models/contact_update_fields_spec.rb +0 -89
- data/spec/models/delivery_report_response_spec.rb +0 -53
- data/spec/models/delivery_result_spec.rb +0 -71
- data/spec/models/error_code_omnichannel_machine_spec.rb +0 -35
- data/spec/models/error_code_omnichannel_spec.rb +0 -35
- data/spec/models/error_code_phonebook_spec.rb +0 -35
- data/spec/models/error_item_omnichannel_spec.rb +0 -59
- data/spec/models/error_item_phonebook_spec.rb +0 -53
- data/spec/models/error_omnichannel_spec.rb +0 -41
- data/spec/models/error_phonebook_spec.rb +0 -41
- data/spec/models/error_title_omnichannel_spec.rb +0 -35
- data/spec/models/error_title_phonebook_spec.rb +0 -35
- data/spec/models/fetch_blacklist_success_spec.rb +0 -41
- data/spec/models/group_envelope_spec.rb +0 -41
- data/spec/models/group_list_envelope_spec.rb +0 -41
- data/spec/models/group_name_spec.rb +0 -41
- data/spec/models/group_response_fields_spec.rb +0 -59
- data/spec/models/message_result_spec.rb +0 -53
- data/spec/models/number_to_blacklist_spec.rb +0 -41
- data/spec/models/omni_message_create_success_response_spec.rb +0 -53
- data/spec/models/omnimessage_spec.rb +0 -65
- data/spec/models/sms_spec.rb +0 -79
- data/spec/models/status_spec.rb +0 -35
- data/spec/models/text_store_spec.rb +0 -35
- data/spec/models/viber_spec.rb +0 -81
- data/spec/models/whats_app_audio_spec.rb +0 -41
- data/spec/models/whats_app_document_spec.rb +0 -47
- data/spec/models/whats_app_image_spec.rb +0 -47
- data/spec/models/whats_app_spec.rb +0 -81
- data/spec/models/whats_app_text_spec.rb +0 -47
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 28da361ef84b6ebe8eb42057099d445a92b550c031c8ca6b03a5048a7aa4eed6
|
4
|
+
data.tar.gz: 54a595e25757abfeb29ef794d2c752264ef08d381692e0f541f8b33f7ffb1624
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d7b4c14e2f7c4a8bb75e81115c8e84b3fdf8ddb9171f822883cb4dd5d8fc4d6e73c9ffb4506d7c9f289f5509b19571d4e2c08772b4706cbbbf74f262481936b
|
7
|
+
data.tar.gz: 437ce78c918c1c0e0caf8a0b4ae326ed45f89e88ada2df99a1b6ed109aba7a222f2e9b303b8dcccd3fc322b32684241e35525c228fff37fbf31c89e92476ff10
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Messente API Library
|
2
2
|
|
3
3
|
- Messente API version: 1.0.2
|
4
|
-
- Ruby gem version: 1.0.
|
4
|
+
- Ruby gem version: 1.0.3
|
5
5
|
|
6
6
|
[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.
|
7
7
|
|
@@ -111,7 +111,7 @@ end
|
|
111
111
|
|
112
112
|
## License
|
113
113
|
|
114
|
-
[Apache
|
114
|
+
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
|
115
115
|
|
116
116
|
## Terms
|
117
117
|
|
data/docs/BlacklistApi.md
CHANGED
@@ -30,7 +30,7 @@ MessenteApi.configure do |config|
|
|
30
30
|
end
|
31
31
|
|
32
32
|
api_instance = MessenteApi::BlacklistApi.new
|
33
|
-
number_to_blacklist =
|
33
|
+
number_to_blacklist = {"phoneNumber":"+37251000000"} # NumberToBlacklist | Phone number to be blacklisted
|
34
34
|
|
35
35
|
begin
|
36
36
|
#Adds a phone number to the blacklist
|
@@ -80,7 +80,7 @@ MessenteApi.configure do |config|
|
|
80
80
|
end
|
81
81
|
|
82
82
|
api_instance = MessenteApi::BlacklistApi.new
|
83
|
-
phone = '
|
83
|
+
phone = '+37251000000' # String | A phone number
|
84
84
|
|
85
85
|
begin
|
86
86
|
#Deletes a phone number from the blacklist
|
@@ -177,7 +177,7 @@ MessenteApi.configure do |config|
|
|
177
177
|
end
|
178
178
|
|
179
179
|
api_instance = MessenteApi::BlacklistApi.new
|
180
|
-
phone = '
|
180
|
+
phone = '+37251000000' # String | A phone number
|
181
181
|
|
182
182
|
begin
|
183
183
|
#Checks if a phone number is blacklisted
|
data/docs/ContactsApi.md
CHANGED
@@ -34,8 +34,8 @@ MessenteApi.configure do |config|
|
|
34
34
|
end
|
35
35
|
|
36
36
|
api_instance = MessenteApi::ContactsApi.new
|
37
|
-
group_id = '
|
38
|
-
phone = '
|
37
|
+
group_id = '5792a02a-e5c2-422b-a0a0-0ae65d814663' # String | String in UUID format
|
38
|
+
phone = '+37251000000' # String | A phone number
|
39
39
|
|
40
40
|
begin
|
41
41
|
#Adds a contact to a group
|
@@ -87,7 +87,7 @@ MessenteApi.configure do |config|
|
|
87
87
|
end
|
88
88
|
|
89
89
|
api_instance = MessenteApi::ContactsApi.new
|
90
|
-
contact_fields =
|
90
|
+
contact_fields = {"phoneNumber":"+37251000000","email":"anyone@messente.com","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"} # ContactFields |
|
91
91
|
|
92
92
|
begin
|
93
93
|
#Creates a new contact
|
@@ -138,7 +138,7 @@ MessenteApi.configure do |config|
|
|
138
138
|
end
|
139
139
|
|
140
140
|
api_instance = MessenteApi::ContactsApi.new
|
141
|
-
phone = '
|
141
|
+
phone = '+37251000000' # String | A phone number
|
142
142
|
|
143
143
|
begin
|
144
144
|
#Deletes a contact
|
@@ -188,7 +188,7 @@ MessenteApi.configure do |config|
|
|
188
188
|
end
|
189
189
|
|
190
190
|
api_instance = MessenteApi::ContactsApi.new
|
191
|
-
phone = '
|
191
|
+
phone = '+37251000000' # String | A phone number
|
192
192
|
|
193
193
|
begin
|
194
194
|
#Lists a contact
|
@@ -239,7 +239,7 @@ MessenteApi.configure do |config|
|
|
239
239
|
end
|
240
240
|
|
241
241
|
api_instance = MessenteApi::ContactsApi.new
|
242
|
-
phone = '
|
242
|
+
phone = '+37251000000' # String | A phone number
|
243
243
|
|
244
244
|
begin
|
245
245
|
#Lists groups of a contact
|
@@ -291,7 +291,7 @@ end
|
|
291
291
|
|
292
292
|
api_instance = MessenteApi::ContactsApi.new
|
293
293
|
opts = {
|
294
|
-
group_ids: ['
|
294
|
+
group_ids: ['[\"5792a02a-e5c2-422b-a0a0-0ae65d814663\",\"4792a02a-e5c2-422b-a0a0-0ae65d814662\"]'] # Array<String> | Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\"
|
295
295
|
}
|
296
296
|
|
297
297
|
begin
|
@@ -343,8 +343,8 @@ MessenteApi.configure do |config|
|
|
343
343
|
end
|
344
344
|
|
345
345
|
api_instance = MessenteApi::ContactsApi.new
|
346
|
-
group_id = '
|
347
|
-
phone = '
|
346
|
+
group_id = '5792a02a-e5c2-422b-a0a0-0ae65d814663' # String | String in UUID format
|
347
|
+
phone = '+37251000000' # String | A phone number
|
348
348
|
|
349
349
|
begin
|
350
350
|
#Removes a contact from a group
|
@@ -395,8 +395,8 @@ MessenteApi.configure do |config|
|
|
395
395
|
end
|
396
396
|
|
397
397
|
api_instance = MessenteApi::ContactsApi.new
|
398
|
-
phone = '
|
399
|
-
contact_update_fields =
|
398
|
+
phone = '+37251000000' # String | A phone number
|
399
|
+
contact_update_fields = {"email":"anyone@messente.com","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"} # ContactUpdateFields |
|
400
400
|
|
401
401
|
begin
|
402
402
|
#Updates a contact
|
data/docs/GroupsApi.md
CHANGED
@@ -31,7 +31,7 @@ MessenteApi.configure do |config|
|
|
31
31
|
end
|
32
32
|
|
33
33
|
api_instance = MessenteApi::GroupsApi.new
|
34
|
-
group_name =
|
34
|
+
group_name = {"name":"Any group name"} # GroupName |
|
35
35
|
|
36
36
|
begin
|
37
37
|
#Creates a new group with the provided name
|
@@ -82,7 +82,7 @@ MessenteApi.configure do |config|
|
|
82
82
|
end
|
83
83
|
|
84
84
|
api_instance = MessenteApi::GroupsApi.new
|
85
|
-
group_id = '
|
85
|
+
group_id = '5792a02a-e5c2-422b-a0a0-0ae65d814663' # String | String in UUID format
|
86
86
|
|
87
87
|
begin
|
88
88
|
#Deletes a group
|
@@ -132,7 +132,7 @@ MessenteApi.configure do |config|
|
|
132
132
|
end
|
133
133
|
|
134
134
|
api_instance = MessenteApi::GroupsApi.new
|
135
|
-
group_id = '
|
135
|
+
group_id = '5792a02a-e5c2-422b-a0a0-0ae65d814663' # String | String in UUID format
|
136
136
|
|
137
137
|
begin
|
138
138
|
#Lists a group
|
@@ -230,8 +230,8 @@ MessenteApi.configure do |config|
|
|
230
230
|
end
|
231
231
|
|
232
232
|
api_instance = MessenteApi::GroupsApi.new
|
233
|
-
group_id = '
|
234
|
-
group_name =
|
233
|
+
group_id = '5792a02a-e5c2-422b-a0a0-0ae65d814663' # String | String in UUID format
|
234
|
+
group_name = {"name":"Any group name"} # GroupName |
|
235
235
|
|
236
236
|
begin
|
237
237
|
#Updates a group with the provided name
|
data/lib/messente_api.rb
CHANGED
@@ -6,11 +6,11 @@
|
|
6
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
|
-
OpenAPI Generator version: 4.0.
|
9
|
+
OpenAPI Generator version: 4.0.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module MessenteApi
|
16
16
|
class BlacklistApi
|
@@ -103,7 +103,7 @@ module MessenteApi
|
|
103
103
|
fail ArgumentError, "Missing the required parameter 'phone' when calling BlacklistApi.delete_from_blacklist"
|
104
104
|
end
|
105
105
|
# resource path
|
106
|
-
local_var_path = '/phonebook/blacklist/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
|
106
|
+
local_var_path = '/phonebook/blacklist/{phone}'.sub('{' + 'phone' + '}', CGI.escape(phone.to_s))
|
107
107
|
|
108
108
|
# query parameters
|
109
109
|
query_params = opts[:query_params] || {}
|
@@ -217,7 +217,7 @@ module MessenteApi
|
|
217
217
|
fail ArgumentError, "Missing the required parameter 'phone' when calling BlacklistApi.is_blacklisted"
|
218
218
|
end
|
219
219
|
# resource path
|
220
|
-
local_var_path = '/phonebook/blacklist/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
|
220
|
+
local_var_path = '/phonebook/blacklist/{phone}'.sub('{' + 'phone' + '}', CGI.escape(phone.to_s))
|
221
221
|
|
222
222
|
# query parameters
|
223
223
|
query_params = opts[:query_params] || {}
|
@@ -6,11 +6,11 @@
|
|
6
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
|
-
OpenAPI Generator version: 4.0.
|
9
|
+
OpenAPI Generator version: 4.0.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module MessenteApi
|
16
16
|
class ContactsApi
|
@@ -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 = '/phonebook/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' + '}', CGI.escape(group_id.to_s)).sub('{' + 'phone' + '}', CGI.escape(phone.to_s))
|
51
51
|
|
52
52
|
# query parameters
|
53
53
|
query_params = opts[:query_params] || {}
|
@@ -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 = '/phonebook/contacts/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
|
172
|
+
local_var_path = '/phonebook/contacts/{phone}'.sub('{' + 'phone' + '}', CGI.escape(phone.to_s))
|
173
173
|
|
174
174
|
# query parameters
|
175
175
|
query_params = opts[:query_params] || {}
|
@@ -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 = '/phonebook/contacts/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
|
232
|
+
local_var_path = '/phonebook/contacts/{phone}'.sub('{' + 'phone' + '}', CGI.escape(phone.to_s))
|
233
233
|
|
234
234
|
# query parameters
|
235
235
|
query_params = opts[:query_params] || {}
|
@@ -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 = '/phonebook/contacts/{phone}/groups'.sub('{' + 'phone' + '}', phone.to_s)
|
292
|
+
local_var_path = '/phonebook/contacts/{phone}/groups'.sub('{' + 'phone' + '}', CGI.escape(phone.to_s))
|
293
293
|
|
294
294
|
# query parameters
|
295
295
|
query_params = opts[:query_params] || {}
|
@@ -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 = '/phonebook/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' + '}', CGI.escape(group_id.to_s)).sub('{' + 'phone' + '}', CGI.escape(phone.to_s))
|
416
416
|
|
417
417
|
# query parameters
|
418
418
|
query_params = opts[:query_params] || {}
|
@@ -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 = '/phonebook/contacts/{phone}'.sub('{' + 'phone' + '}', phone.to_s)
|
481
|
+
local_var_path = '/phonebook/contacts/{phone}'.sub('{' + 'phone' + '}', CGI.escape(phone.to_s))
|
482
482
|
|
483
483
|
# query parameters
|
484
484
|
query_params = opts[:query_params] || {}
|
@@ -6,11 +6,11 @@
|
|
6
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
|
-
OpenAPI Generator version: 4.0.
|
9
|
+
OpenAPI Generator version: 4.0.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module MessenteApi
|
16
16
|
class DeliveryReportApi
|
@@ -41,7 +41,7 @@ module MessenteApi
|
|
41
41
|
fail ArgumentError, "Missing the required parameter 'omnimessage_id' when calling DeliveryReportApi.retrieve_delivery_report"
|
42
42
|
end
|
43
43
|
# resource path
|
44
|
-
local_var_path = '/omnimessage/{omnimessageId}/status'.sub('{' + 'omnimessageId' + '}', omnimessage_id.to_s)
|
44
|
+
local_var_path = '/omnimessage/{omnimessageId}/status'.sub('{' + 'omnimessageId' + '}', CGI.escape(omnimessage_id.to_s))
|
45
45
|
|
46
46
|
# query parameters
|
47
47
|
query_params = opts[:query_params] || {}
|
@@ -6,11 +6,11 @@
|
|
6
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
|
-
OpenAPI Generator version: 4.0.
|
9
|
+
OpenAPI Generator version: 4.0.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module MessenteApi
|
16
16
|
class GroupsApi
|
@@ -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 = '/phonebook/groups/{groupId}'.sub('{' + 'groupId' + '}', group_id.to_s)
|
106
|
+
local_var_path = '/phonebook/groups/{groupId}'.sub('{' + 'groupId' + '}', CGI.escape(group_id.to_s))
|
107
107
|
|
108
108
|
# query parameters
|
109
109
|
query_params = opts[:query_params] || {}
|
@@ -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 = '/phonebook/groups/{groupId}'.sub('{' + 'groupId' + '}', group_id.to_s)
|
166
|
+
local_var_path = '/phonebook/groups/{groupId}'.sub('{' + 'groupId' + '}', CGI.escape(group_id.to_s))
|
167
167
|
|
168
168
|
# query parameters
|
169
169
|
query_params = opts[:query_params] || {}
|
@@ -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 = '/phonebook/groups/{groupId}'.sub('{' + 'groupId' + '}', group_id.to_s)
|
286
|
+
local_var_path = '/phonebook/groups/{groupId}'.sub('{' + 'groupId' + '}', CGI.escape(group_id.to_s))
|
287
287
|
|
288
288
|
# query parameters
|
289
289
|
query_params = opts[:query_params] || {}
|
@@ -6,11 +6,11 @@
|
|
6
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
|
-
OpenAPI Generator version: 4.0.
|
9
|
+
OpenAPI Generator version: 4.0.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module MessenteApi
|
16
16
|
class OmnimessageApi
|
@@ -41,7 +41,7 @@ module MessenteApi
|
|
41
41
|
fail ArgumentError, "Missing the required parameter 'omnimessage_id' when calling OmnimessageApi.cancel_scheduled_message"
|
42
42
|
end
|
43
43
|
# resource path
|
44
|
-
local_var_path = '/omnimessage/{omnimessageId}'.sub('{' + 'omnimessageId' + '}', omnimessage_id.to_s)
|
44
|
+
local_var_path = '/omnimessage/{omnimessageId}'.sub('{' + 'omnimessageId' + '}', CGI.escape(omnimessage_id.to_s))
|
45
45
|
|
46
46
|
# query parameters
|
47
47
|
query_params = opts[:query_params] || {}
|
@@ -6,7 +6,7 @@
|
|
6
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
|
-
OpenAPI Generator version: 4.0.
|
9
|
+
OpenAPI Generator version: 4.0.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,7 +15,6 @@ require 'json'
|
|
15
15
|
require 'logger'
|
16
16
|
require 'tempfile'
|
17
17
|
require 'typhoeus'
|
18
|
-
require 'uri'
|
19
18
|
|
20
19
|
module MessenteApi
|
21
20
|
class ApiClient
|
@@ -262,7 +261,7 @@ module MessenteApi
|
|
262
261
|
def build_request_url(path)
|
263
262
|
# Add leading and trailing slashes to path
|
264
263
|
path = "/#{path}".gsub(/\/+/, '/')
|
265
|
-
|
264
|
+
@config.base_url + path
|
266
265
|
end
|
267
266
|
|
268
267
|
# Builds the HTTP request body
|
@@ -6,12 +6,10 @@
|
|
6
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
|
-
OpenAPI Generator version: 4.0.
|
9
|
+
OpenAPI Generator version: 4.0.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require 'uri'
|
14
|
-
|
15
13
|
module MessenteApi
|
16
14
|
class Configuration
|
17
15
|
# Defines url scheme
|
@@ -174,8 +172,7 @@ module MessenteApi
|
|
174
172
|
end
|
175
173
|
|
176
174
|
def base_url
|
177
|
-
|
178
|
-
URI.encode(url)
|
175
|
+
"#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
|
179
176
|
end
|
180
177
|
|
181
178
|
# Gets API key (with prefix if set).
|