Skip to content

Commit 42ecf50

Browse files
author
Erik Räni
authored
1.0.3 (#4)
Use generator version 4.0.3
1 parent fdd4a07 commit 42ecf50

95 files changed

Lines changed: 94 additions & 2217 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.0
1+
4.0.3

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Layout/EmptyLinesAroundMethodBody:
4646
Layout/EmptyLinesAroundModuleBody:
4747
Enabled: true
4848

49-
Layout/FirstParameterIndentation:
49+
Layout/IndentFirstArgument:
5050
Enabled: true
5151

5252
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ script:
88
- bundle install --path vendor/bundle
99
- bundle exec rspec
1010
- gem build messente_api.gemspec
11-
- gem install ./messente_api-1.0.2.gem
11+
- gem install ./messente_api-1.0.3.gem

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
messente_api (1.0.2)
4+
messente_api (1.0.3)
55
json (~> 2.1, >= 2.1.0)
66
typhoeus (~> 1.0, >= 1.0.1)
77

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Messente API Library
22

33
- Messente API version: 1.0.2
4-
- Ruby gem version: 1.0.2
4+
- Ruby gem version: 1.0.3
55

66
[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.
77

@@ -111,7 +111,7 @@ end
111111

112112
## License
113113

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)
115115

116116
## Terms
117117

docs/BlacklistApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ MessenteApi.configure do |config|
3030
end
3131

3232
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
3434

3535
begin
3636
#Adds a phone number to the blacklist
@@ -80,7 +80,7 @@ MessenteApi.configure do |config|
8080
end
8181

8282
api_instance = MessenteApi::BlacklistApi.new
83-
phone = 'phone_example' # String | A phone number
83+
phone = '+37251000000' # String | A phone number
8484

8585
begin
8686
#Deletes a phone number from the blacklist
@@ -177,7 +177,7 @@ MessenteApi.configure do |config|
177177
end
178178

179179
api_instance = MessenteApi::BlacklistApi.new
180-
phone = 'phone_example' # String | A phone number
180+
phone = '+37251000000' # String | A phone number
181181

182182
begin
183183
#Checks if a phone number is blacklisted

docs/ContactsApi.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ MessenteApi.configure do |config|
3434
end
3535

3636
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
3939

4040
begin
4141
#Adds a contact to a group
@@ -87,7 +87,7 @@ MessenteApi.configure do |config|
8787
end
8888

8989
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 |
9191

9292
begin
9393
#Creates a new contact
@@ -138,7 +138,7 @@ MessenteApi.configure do |config|
138138
end
139139

140140
api_instance = MessenteApi::ContactsApi.new
141-
phone = 'phone_example' # String | A phone number
141+
phone = '+37251000000' # String | A phone number
142142

143143
begin
144144
#Deletes a contact
@@ -188,7 +188,7 @@ MessenteApi.configure do |config|
188188
end
189189

190190
api_instance = MessenteApi::ContactsApi.new
191-
phone = 'phone_example' # String | A phone number
191+
phone = '+37251000000' # String | A phone number
192192

193193
begin
194194
#Lists a contact
@@ -239,7 +239,7 @@ MessenteApi.configure do |config|
239239
end
240240

241241
api_instance = MessenteApi::ContactsApi.new
242-
phone = 'phone_example' # String | A phone number
242+
phone = '+37251000000' # String | A phone number
243243

244244
begin
245245
#Lists groups of a contact
@@ -291,7 +291,7 @@ end
291291

292292
api_instance = MessenteApi::ContactsApi.new
293293
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\"
295295
}
296296

297297
begin
@@ -343,8 +343,8 @@ MessenteApi.configure do |config|
343343
end
344344

345345
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
348348

349349
begin
350350
#Removes a contact from a group
@@ -395,8 +395,8 @@ MessenteApi.configure do |config|
395395
end
396396

397397
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 |
400400

401401
begin
402402
#Updates a contact

docs/GroupsApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ MessenteApi.configure do |config|
3131
end
3232

3333
api_instance = MessenteApi::GroupsApi.new
34-
group_name = MessenteApi::GroupName.new # GroupName |
34+
group_name = {"name":"Any group name"} # GroupName |
3535

3636
begin
3737
#Creates a new group with the provided name
@@ -82,7 +82,7 @@ MessenteApi.configure do |config|
8282
end
8383

8484
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
8686

8787
begin
8888
#Deletes a group
@@ -132,7 +132,7 @@ MessenteApi.configure do |config|
132132
end
133133

134134
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
136136

137137
begin
138138
#Lists a group
@@ -230,8 +230,8 @@ MessenteApi.configure do |config|
230230
end
231231

232232
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 |
235235

236236
begin
237237
#Updates a group with the provided name

lib/messente_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: 1.0.2
77
Contact: messente@messente.com
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 4.0.0
9+
OpenAPI Generator version: 4.0.3
1010
1111
=end
1212

lib/messente_api/api/blacklist_api.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
The version of the OpenAPI document: 1.0.2
77
Contact: messente@messente.com
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 4.0.0
9+
OpenAPI Generator version: 4.0.3
1010
1111
=end
1212

13-
require 'uri'
13+
require 'cgi'
1414

1515
module MessenteApi
1616
class BlacklistApi
@@ -103,7 +103,7 @@ def delete_from_blacklist_with_http_info(phone, opts = {})
103103
fail ArgumentError, "Missing the required parameter 'phone' when calling BlacklistApi.delete_from_blacklist"
104104
end
105105
# 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))
107107

108108
# query parameters
109109
query_params = opts[:query_params] || {}
@@ -217,7 +217,7 @@ def is_blacklisted_with_http_info(phone, opts = {})
217217
fail ArgumentError, "Missing the required parameter 'phone' when calling BlacklistApi.is_blacklisted"
218218
end
219219
# 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))
221221

222222
# query parameters
223223
query_params = opts[:query_params] || {}

0 commit comments

Comments
 (0)