Skip to content

Commit 3be36f1

Browse files
author
Erik Räni
authored
1.0.4 (#4)
Use generator version 4.0.3
1 parent 585d2dc commit 3be36f1

Some content is hidden

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

56 files changed

+707
-1907
lines changed

.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

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-
- Python package version: 1.0.3
4+
- Python package version: 1.0.4
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

@@ -124,7 +124,7 @@ except ApiException as exception:
124124

125125
## License
126126

127-
[Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
127+
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
128128

129129
## Terms
130130

docs/BlacklistApi.md

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ configuration = messente_api.Configuration()
2929
configuration.username = 'YOUR_USERNAME'
3030
configuration.password = 'YOUR_PASSWORD'
3131

32-
# create an instance of the API class
32+
# Defining host is optional and default to https://api.messente.com/v1
33+
configuration.host = "https://api.messente.com/v1"
34+
# Create an instance of the API class
3335
api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration))
34-
number_to_blacklist = messente_api.NumberToBlacklist() # NumberToBlacklist | Phone number to be blacklisted
36+
number_to_blacklist = {"phoneNumber":"+37251000000"} # NumberToBlacklist | Phone number to be blacklisted
3537

3638
try:
3739
# Adds a phone number to the blacklist
@@ -59,6 +61,15 @@ void (empty response body)
5961
- **Content-Type**: application/json
6062
- **Accept**: application/json
6163

64+
### HTTP response details
65+
| Status code | Description | Response headers |
66+
|-------------|-------------|------------------|
67+
**204** | Phone number added to the blacklist | - |
68+
**400** | Invalid phone number provided | - |
69+
**401** | Unauthorized | - |
70+
**409** | Phone number already blacklisted | - |
71+
**0** | General error | - |
72+
6273
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
6374

6475
# **delete_from_blacklist**
@@ -80,9 +91,11 @@ configuration = messente_api.Configuration()
8091
configuration.username = 'YOUR_USERNAME'
8192
configuration.password = 'YOUR_PASSWORD'
8293

83-
# create an instance of the API class
94+
# Defining host is optional and default to https://api.messente.com/v1
95+
configuration.host = "https://api.messente.com/v1"
96+
# Create an instance of the API class
8497
api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration))
85-
phone = 'phone_example' # str | A phone number
98+
phone = '+37251000000' # str | A phone number
8699

87100
try:
88101
# Deletes a phone number from the blacklist
@@ -110,6 +123,15 @@ void (empty response body)
110123
- **Content-Type**: Not defined
111124
- **Accept**: application/json
112125

126+
### HTTP response details
127+
| Status code | Description | Response headers |
128+
|-------------|-------------|------------------|
129+
**204** | Phone number deleted from the blacklist | - |
130+
**400** | Invalid phone number provided | - |
131+
**401** | Unauthorized | - |
132+
**404** | Phone number is not in the blacklist | - |
133+
**0** | General error | - |
134+
113135
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
114136

115137
# **fetch_blacklist**
@@ -131,7 +153,9 @@ configuration = messente_api.Configuration()
131153
configuration.username = 'YOUR_USERNAME'
132154
configuration.password = 'YOUR_PASSWORD'
133155

134-
# create an instance of the API class
156+
# Defining host is optional and default to https://api.messente.com/v1
157+
configuration.host = "https://api.messente.com/v1"
158+
# Create an instance of the API class
135159
api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration))
136160

137161
try:
@@ -158,6 +182,13 @@ This endpoint does not need any parameter.
158182
- **Content-Type**: Not defined
159183
- **Accept**: application/json
160184

185+
### HTTP response details
186+
| Status code | Description | Response headers |
187+
|-------------|-------------|------------------|
188+
**200** | An object containing a list of blacklisted phone numbers | - |
189+
**401** | Unauthorized | - |
190+
**0** | General error | - |
191+
161192
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
162193

163194
# **is_blacklisted**
@@ -179,9 +210,11 @@ configuration = messente_api.Configuration()
179210
configuration.username = 'YOUR_USERNAME'
180211
configuration.password = 'YOUR_PASSWORD'
181212

182-
# create an instance of the API class
213+
# Defining host is optional and default to https://api.messente.com/v1
214+
configuration.host = "https://api.messente.com/v1"
215+
# Create an instance of the API class
183216
api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration))
184-
phone = 'phone_example' # str | A phone number
217+
phone = '+37251000000' # str | A phone number
185218

186219
try:
187220
# Checks if a phone number is blacklisted
@@ -209,5 +242,13 @@ void (empty response body)
209242
- **Content-Type**: Not defined
210243
- **Accept**: application/json
211244

245+
### HTTP response details
246+
| Status code | Description | Response headers |
247+
|-------------|-------------|------------------|
248+
**204** | Phone number is in the blacklist | - |
249+
**400** | Invalid phone number provided | - |
250+
**401** | Unauthorized | - |
251+
**404** | Phone number is not in the blacklist | - |
252+
212253
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
213254

docs/ContactsApi.md

Lines changed: 105 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ configuration = messente_api.Configuration()
3333
configuration.username = 'YOUR_USERNAME'
3434
configuration.password = 'YOUR_PASSWORD'
3535

36-
# create an instance of the API class
36+
# Defining host is optional and default to https://api.messente.com/v1
37+
configuration.host = "https://api.messente.com/v1"
38+
# Create an instance of the API class
3739
api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration))
38-
group_id = 'group_id_example' # str | String in UUID format
39-
phone = 'phone_example' # str | A phone number
40+
group_id = '5792a02a-e5c2-422b-a0a0-0ae65d814663' # str | String in UUID format
41+
phone = '+37251000000' # str | A phone number
4042

4143
try:
4244
# Adds a contact to a group
@@ -66,6 +68,16 @@ Name | Type | Description | Notes
6668
- **Content-Type**: Not defined
6769
- **Accept**: application/json
6870

71+
### HTTP response details
72+
| Status code | Description | Response headers |
73+
|-------------|-------------|------------------|
74+
**201** | An empty object | - |
75+
**400** | Invalid phone number provided | - |
76+
**401** | Unauthorized | - |
77+
**404** | Contact or group is missing | - |
78+
**409** | Contact already added to group | - |
79+
**0** | General error | - |
80+
6981
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
7082

7183
# **create_contact**
@@ -87,9 +99,11 @@ configuration = messente_api.Configuration()
8799
configuration.username = 'YOUR_USERNAME'
88100
configuration.password = 'YOUR_PASSWORD'
89101

90-
# create an instance of the API class
102+
# Defining host is optional and default to https://api.messente.com/v1
103+
configuration.host = "https://api.messente.com/v1"
104+
# Create an instance of the API class
91105
api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration))
92-
contact_fields = messente_api.ContactFields() # ContactFields |
106+
contact_fields = {"phoneNumber":"+37251000000","email":"[email protected]","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"} # ContactFields |
93107

94108
try:
95109
# Creates a new contact
@@ -118,6 +132,15 @@ Name | Type | Description | Notes
118132
- **Content-Type**: application/json
119133
- **Accept**: application/json
120134

135+
### HTTP response details
136+
| Status code | Description | Response headers |
137+
|-------------|-------------|------------------|
138+
**201** | An object containing a contact object | - |
139+
**400** | Invalid phone number provided | - |
140+
**401** | Unauthorized | - |
141+
**409** | Contact with phone already created | - |
142+
**0** | General error | - |
143+
121144
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
122145

123146
# **delete_contact**
@@ -139,9 +162,11 @@ configuration = messente_api.Configuration()
139162
configuration.username = 'YOUR_USERNAME'
140163
configuration.password = 'YOUR_PASSWORD'
141164

142-
# create an instance of the API class
165+
# Defining host is optional and default to https://api.messente.com/v1
166+
configuration.host = "https://api.messente.com/v1"
167+
# Create an instance of the API class
143168
api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration))
144-
phone = 'phone_example' # str | A phone number
169+
phone = '+37251000000' # str | A phone number
145170

146171
try:
147172
# Deletes a contact
@@ -169,6 +194,15 @@ void (empty response body)
169194
- **Content-Type**: Not defined
170195
- **Accept**: application/json
171196

197+
### HTTP response details
198+
| Status code | Description | Response headers |
199+
|-------------|-------------|------------------|
200+
**204** | Contact deleted | - |
201+
**400** | Invalid phone number provided | - |
202+
**401** | Unauthorized | - |
203+
**404** | Contact missing | - |
204+
**0** | General error | - |
205+
172206
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
173207

174208
# **fetch_contact**
@@ -190,9 +224,11 @@ configuration = messente_api.Configuration()
190224
configuration.username = 'YOUR_USERNAME'
191225
configuration.password = 'YOUR_PASSWORD'
192226

193-
# create an instance of the API class
227+
# Defining host is optional and default to https://api.messente.com/v1
228+
configuration.host = "https://api.messente.com/v1"
229+
# Create an instance of the API class
194230
api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration))
195-
phone = 'phone_example' # str | A phone number
231+
phone = '+37251000000' # str | A phone number
196232

197233
try:
198234
# Lists a contact
@@ -221,6 +257,14 @@ Name | Type | Description | Notes
221257
- **Content-Type**: Not defined
222258
- **Accept**: application/json
223259

260+
### HTTP response details
261+
| Status code | Description | Response headers |
262+
|-------------|-------------|------------------|
263+
**200** | An object containing a contact object | - |
264+
**400** | Invalid phone number provided | - |
265+
**401** | Unauthorized | - |
266+
**404** | Contact missing | - |
267+
224268
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
225269

226270
# **fetch_contact_groups**
@@ -242,9 +286,11 @@ configuration = messente_api.Configuration()
242286
configuration.username = 'YOUR_USERNAME'
243287
configuration.password = 'YOUR_PASSWORD'
244288

245-
# create an instance of the API class
289+
# Defining host is optional and default to https://api.messente.com/v1
290+
configuration.host = "https://api.messente.com/v1"
291+
# Create an instance of the API class
246292
api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration))
247-
phone = 'phone_example' # str | A phone number
293+
phone = '+37251000000' # str | A phone number
248294

249295
try:
250296
# Lists groups of a contact
@@ -273,6 +319,14 @@ Name | Type | Description | Notes
273319
- **Content-Type**: Not defined
274320
- **Accept**: application/json
275321

322+
### HTTP response details
323+
| Status code | Description | Response headers |
324+
|-------------|-------------|------------------|
325+
**200** | An object containing a list of group objects | - |
326+
**400** | Invalid phone number provided | - |
327+
**401** | Unauthorized | - |
328+
**404** | Contact missing | - |
329+
276330
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
277331

278332
# **fetch_contacts**
@@ -294,9 +348,11 @@ configuration = messente_api.Configuration()
294348
configuration.username = 'YOUR_USERNAME'
295349
configuration.password = 'YOUR_PASSWORD'
296350

297-
# create an instance of the API class
351+
# Defining host is optional and default to https://api.messente.com/v1
352+
configuration.host = "https://api.messente.com/v1"
353+
# Create an instance of the API class
298354
api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration))
299-
group_ids = ['group_ids_example'] # list[str] | Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" (optional)
355+
group_ids = ['[\"5792a02a-e5c2-422b-a0a0-0ae65d814663\",\"4792a02a-e5c2-422b-a0a0-0ae65d814662\"]'] # list[str] | Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" (optional)
300356

301357
try:
302358
# Returns all contacts
@@ -325,6 +381,14 @@ Name | Type | Description | Notes
325381
- **Content-Type**: Not defined
326382
- **Accept**: application/json
327383

384+
### HTTP response details
385+
| Status code | Description | Response headers |
386+
|-------------|-------------|------------------|
387+
**200** | An object containing a list of contact objects | - |
388+
**400** | Invalid \"groupIds\" parameters provided | - |
389+
**401** | Unauthorized | - |
390+
**0** | General error | - |
391+
328392
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
329393

330394
# **remove_contact_from_group**
@@ -346,10 +410,12 @@ configuration = messente_api.Configuration()
346410
configuration.username = 'YOUR_USERNAME'
347411
configuration.password = 'YOUR_PASSWORD'
348412

349-
# create an instance of the API class
413+
# Defining host is optional and default to https://api.messente.com/v1
414+
configuration.host = "https://api.messente.com/v1"
415+
# Create an instance of the API class
350416
api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration))
351-
group_id = 'group_id_example' # str | String in UUID format
352-
phone = 'phone_example' # str | A phone number
417+
group_id = '5792a02a-e5c2-422b-a0a0-0ae65d814663' # str | String in UUID format
418+
phone = '+37251000000' # str | A phone number
353419

354420
try:
355421
# Removes a contact from a group
@@ -378,6 +444,15 @@ void (empty response body)
378444
- **Content-Type**: Not defined
379445
- **Accept**: application/json
380446

447+
### HTTP response details
448+
| Status code | Description | Response headers |
449+
|-------------|-------------|------------------|
450+
**204** | Contact removed from group | - |
451+
**400** | Invalid phone number provided | - |
452+
**401** | Unauthorized | - |
453+
**404** | Contact or group is missing or contact is missing from group | - |
454+
**0** | General error | - |
455+
381456
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
382457

383458
# **update_contact**
@@ -399,10 +474,12 @@ configuration = messente_api.Configuration()
399474
configuration.username = 'YOUR_USERNAME'
400475
configuration.password = 'YOUR_PASSWORD'
401476

402-
# create an instance of the API class
477+
# Defining host is optional and default to https://api.messente.com/v1
478+
configuration.host = "https://api.messente.com/v1"
479+
# Create an instance of the API class
403480
api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration))
404-
phone = 'phone_example' # str | A phone number
405-
contact_update_fields = messente_api.ContactUpdateFields() # ContactUpdateFields |
481+
phone = '+37251000000' # str | A phone number
482+
contact_update_fields = {"email":"[email protected]","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"} # ContactUpdateFields |
406483

407484
try:
408485
# Updates a contact
@@ -432,5 +509,14 @@ Name | Type | Description | Notes
432509
- **Content-Type**: application/json
433510
- **Accept**: application/json
434511

512+
### HTTP response details
513+
| Status code | Description | Response headers |
514+
|-------------|-------------|------------------|
515+
**200** | An object containing a contact object | - |
516+
**400** | Invalid phone number or empty patch body or unknown fields provided | - |
517+
**401** | Unauthorized | - |
518+
**404** | Contact missing | - |
519+
**0** | General error | - |
520+
435521
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
436522

0 commit comments

Comments
 (0)