messente_api 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile.lock +1 -1
  3. data/README.md +2 -2
  4. data/docs/BlacklistApi.md +3 -3
  5. data/docs/ContactsApi.md +11 -11
  6. data/docs/GroupsApi.md +5 -5
  7. data/lib/messente_api.rb +1 -1
  8. data/lib/messente_api/api/blacklist_api.rb +4 -4
  9. data/lib/messente_api/api/contacts_api.rb +8 -8
  10. data/lib/messente_api/api/delivery_report_api.rb +3 -3
  11. data/lib/messente_api/api/groups_api.rb +5 -5
  12. data/lib/messente_api/api/omnimessage_api.rb +3 -3
  13. data/lib/messente_api/api_client.rb +2 -3
  14. data/lib/messente_api/api_error.rb +1 -1
  15. data/lib/messente_api/configuration.rb +2 -5
  16. data/lib/messente_api/models/channel.rb +1 -1
  17. data/lib/messente_api/models/contact_envelope.rb +1 -1
  18. data/lib/messente_api/models/contact_fields.rb +1 -1
  19. data/lib/messente_api/models/contact_list_envelope.rb +1 -1
  20. data/lib/messente_api/models/contact_update_fields.rb +1 -1
  21. data/lib/messente_api/models/delivery_report_response.rb +1 -1
  22. data/lib/messente_api/models/delivery_result.rb +1 -1
  23. data/lib/messente_api/models/error_code_omnichannel.rb +1 -1
  24. data/lib/messente_api/models/error_code_omnichannel_machine.rb +1 -1
  25. data/lib/messente_api/models/error_code_phonebook.rb +1 -1
  26. data/lib/messente_api/models/error_item_omnichannel.rb +1 -1
  27. data/lib/messente_api/models/error_item_phonebook.rb +1 -1
  28. data/lib/messente_api/models/error_omnichannel.rb +1 -1
  29. data/lib/messente_api/models/error_phonebook.rb +1 -1
  30. data/lib/messente_api/models/error_title_omnichannel.rb +1 -1
  31. data/lib/messente_api/models/error_title_phonebook.rb +1 -1
  32. data/lib/messente_api/models/fetch_blacklist_success.rb +1 -1
  33. data/lib/messente_api/models/group_envelope.rb +1 -1
  34. data/lib/messente_api/models/group_list_envelope.rb +1 -1
  35. data/lib/messente_api/models/group_name.rb +1 -1
  36. data/lib/messente_api/models/group_response_fields.rb +1 -1
  37. data/lib/messente_api/models/message_result.rb +1 -1
  38. data/lib/messente_api/models/number_to_blacklist.rb +1 -1
  39. data/lib/messente_api/models/omni_message_create_success_response.rb +1 -1
  40. data/lib/messente_api/models/omnimessage.rb +1 -1
  41. data/lib/messente_api/models/sms.rb +1 -1
  42. data/lib/messente_api/models/status.rb +1 -1
  43. data/lib/messente_api/models/text_store.rb +1 -1
  44. data/lib/messente_api/models/viber.rb +1 -1
  45. data/lib/messente_api/models/whats_app.rb +1 -1
  46. data/lib/messente_api/models/whats_app_audio.rb +1 -1
  47. data/lib/messente_api/models/whats_app_document.rb +1 -1
  48. data/lib/messente_api/models/whats_app_image.rb +1 -1
  49. data/lib/messente_api/models/whats_app_text.rb +1 -1
  50. data/lib/messente_api/version.rb +2 -2
  51. data/messente_api.gemspec +3 -3
  52. data/spec/api_client_spec.rb +1 -1
  53. data/spec/configuration_spec.rb +1 -1
  54. data/spec/spec_helper.rb +1 -1
  55. metadata +17 -96
  56. data/spec/api/blacklist_api_spec.rb +0 -78
  57. data/spec/api/contacts_api_spec.rb +0 -126
  58. data/spec/api/delivery_report_api_spec.rb +0 -46
  59. data/spec/api/groups_api_spec.rb +0 -90
  60. data/spec/api/omnimessage_api_spec.rb +0 -57
  61. data/spec/models/channel_spec.rb +0 -35
  62. data/spec/models/contact_envelope_spec.rb +0 -41
  63. data/spec/models/contact_fields_spec.rb +0 -95
  64. data/spec/models/contact_list_envelope_spec.rb +0 -41
  65. data/spec/models/contact_update_fields_spec.rb +0 -89
  66. data/spec/models/delivery_report_response_spec.rb +0 -53
  67. data/spec/models/delivery_result_spec.rb +0 -71
  68. data/spec/models/error_code_omnichannel_machine_spec.rb +0 -35
  69. data/spec/models/error_code_omnichannel_spec.rb +0 -35
  70. data/spec/models/error_code_phonebook_spec.rb +0 -35
  71. data/spec/models/error_item_omnichannel_spec.rb +0 -59
  72. data/spec/models/error_item_phonebook_spec.rb +0 -53
  73. data/spec/models/error_omnichannel_spec.rb +0 -41
  74. data/spec/models/error_phonebook_spec.rb +0 -41
  75. data/spec/models/error_title_omnichannel_spec.rb +0 -35
  76. data/spec/models/error_title_phonebook_spec.rb +0 -35
  77. data/spec/models/fetch_blacklist_success_spec.rb +0 -41
  78. data/spec/models/group_envelope_spec.rb +0 -41
  79. data/spec/models/group_list_envelope_spec.rb +0 -41
  80. data/spec/models/group_name_spec.rb +0 -41
  81. data/spec/models/group_response_fields_spec.rb +0 -59
  82. data/spec/models/message_result_spec.rb +0 -53
  83. data/spec/models/number_to_blacklist_spec.rb +0 -41
  84. data/spec/models/omni_message_create_success_response_spec.rb +0 -53
  85. data/spec/models/omnimessage_spec.rb +0 -65
  86. data/spec/models/sms_spec.rb +0 -79
  87. data/spec/models/status_spec.rb +0 -35
  88. data/spec/models/text_store_spec.rb +0 -35
  89. data/spec/models/viber_spec.rb +0 -81
  90. data/spec/models/whats_app_audio_spec.rb +0 -41
  91. data/spec/models/whats_app_document_spec.rb +0 -47
  92. data/spec/models/whats_app_image_spec.rb +0 -47
  93. data/spec/models/whats_app_spec.rb +0 -81
  94. data/spec/models/whats_app_text_spec.rb +0 -47
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e6fd4c57c60b3b5d7f8af3a877103634e18a1e07
4
- data.tar.gz: 18f8da6761f778861b8b571bd184b00d7c976b6a
2
+ SHA256:
3
+ metadata.gz: 28da361ef84b6ebe8eb42057099d445a92b550c031c8ca6b03a5048a7aa4eed6
4
+ data.tar.gz: 54a595e25757abfeb29ef794d2c752264ef08d381692e0f541f8b33f7ffb1624
5
5
  SHA512:
6
- metadata.gz: 4cfc50a7ef1f5242e856ad716e61cb19e2483d1f3967a9cf36f540b2dc7a0303212f9cdc18533c033d2b8ed544e5c3c59474bdb353e480221d99dde7a3199d1f
7
- data.tar.gz: 0c2993a67d955e5f4f0e05673a5bcbd99333ccad1baacb3c93ad39c19827bc6956358157a6606ab2b92c6bee51344f743a551ee0a180093c8d721fddf4c76876
6
+ metadata.gz: 9d7b4c14e2f7c4a8bb75e81115c8e84b3fdf8ddb9171f822883cb4dd5d8fc4d6e73c9ffb4506d7c9f289f5509b19571d4e2c08772b4706cbbbf74f262481936b
7
+ data.tar.gz: 437ce78c918c1c0e0caf8a0b4ae326ed45f89e88ada2df99a1b6ed109aba7a222f2e9b303b8dcccd3fc322b32684241e35525c228fff37fbf31c89e92476ff10
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- messente_api (1.0.2)
4
+ messente_api (1.0.3)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
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.2
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 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
114
+ [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
115
115
 
116
116
  ## Terms
117
117
 
@@ -30,7 +30,7 @@ MessenteApi.configure do |config|
30
30
  end
31
31
 
32
32
  api_instance = MessenteApi::BlacklistApi.new
33
- number_to_blacklist = MessenteApi::NumberToBlacklist.new # NumberToBlacklist | Phone number to be blacklisted
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 = 'phone_example' # String | A phone number
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 = 'phone_example' # String | A phone number
180
+ phone = '+37251000000' # String | A phone number
181
181
 
182
182
  begin
183
183
  #Checks if a phone number is blacklisted
@@ -34,8 +34,8 @@ MessenteApi.configure do |config|
34
34
  end
35
35
 
36
36
  api_instance = MessenteApi::ContactsApi.new
37
- group_id = 'group_id_example' # String | String in UUID format
38
- phone = 'phone_example' # String | A phone number
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 = MessenteApi::ContactFields.new # ContactFields |
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 = 'phone_example' # String | A phone number
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 = 'phone_example' # String | A phone number
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 = 'phone_example' # String | A phone number
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: ['group_ids_example'] # Array<String> | Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\"
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 = 'group_id_example' # String | String in UUID format
347
- phone = 'phone_example' # String | A phone number
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 = 'phone_example' # String | A phone number
399
- contact_update_fields = MessenteApi::ContactUpdateFields.new # ContactUpdateFields |
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
@@ -31,7 +31,7 @@ MessenteApi.configure do |config|
31
31
  end
32
32
 
33
33
  api_instance = MessenteApi::GroupsApi.new
34
- group_name = MessenteApi::GroupName.new # GroupName |
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 = 'group_id_example' # String | String in UUID format
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 = 'group_id_example' # String | String in UUID format
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 = 'group_id_example' # String | String in UUID format
234
- group_name = MessenteApi::GroupName.new # GroupName |
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
@@ -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.0
9
+ OpenAPI Generator version: 4.0.3
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.3
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
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.0
9
+ OpenAPI Generator version: 4.0.3
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
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.0
9
+ OpenAPI Generator version: 4.0.3
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
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.0
9
+ OpenAPI Generator version: 4.0.3
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
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.0
9
+ OpenAPI Generator version: 4.0.3
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
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.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
- URI.encode(@config.base_url + path)
264
+ @config.base_url + path
266
265
  end
267
266
 
268
267
  # Builds the HTTP request body
@@ -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.0
9
+ OpenAPI Generator version: 4.0.3
10
10
 
11
11
  =end
12
12
 
@@ -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.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
- url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
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).
@@ -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.0
9
+ OpenAPI Generator version: 4.0.3
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.3
10
10
 
11
11
  =end
12
12