You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Messente API Library
2
2
3
3
- Messente API version: 1.0.2
4
-
- Python package version: 1.0.3
4
+
- Python package version: 1.0.4
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
@@ -124,7 +124,7 @@ except ApiException as exception:
number_to_blacklist =messente_api.NumberToBlacklist()# NumberToBlacklist | Phone number to be blacklisted
36
+
number_to_blacklist ={"phoneNumber":"+37251000000"}# NumberToBlacklist | Phone number to be blacklisted
35
37
36
38
try:
37
39
# Adds a phone number to the blacklist
@@ -59,6 +61,15 @@ void (empty response body)
59
61
-**Content-Type**: application/json
60
62
-**Accept**: application/json
61
63
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
+
62
73
[[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)
**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
+
113
135
[[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)
@@ -158,6 +182,13 @@ This endpoint does not need any parameter.
158
182
-**Content-Type**: Not defined
159
183
-**Accept**: application/json
160
184
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
+
161
192
[[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)
**404** | Phone number is not in the blacklist | - |
252
+
212
253
[[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)
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
40
42
41
43
try:
42
44
# Adds a contact to a group
@@ -66,6 +68,16 @@ Name | Type | Description | Notes
66
68
-**Content-Type**: Not defined
67
69
-**Accept**: application/json
68
70
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
+
69
81
[[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)
@@ -118,6 +132,15 @@ Name | Type | Description | Notes
118
132
-**Content-Type**: application/json
119
133
-**Accept**: application/json
120
134
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
+
121
144
[[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)
[[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)
@@ -221,6 +257,14 @@ Name | Type | Description | Notes
221
257
-**Content-Type**: Not defined
222
258
-**Accept**: application/json
223
259
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
+
224
268
[[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)
@@ -273,6 +319,14 @@ Name | Type | Description | Notes
273
319
-**Content-Type**: Not defined
274
320
-**Accept**: application/json
275
321
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
+
276
330
[[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)
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)
300
356
301
357
try:
302
358
# Returns all contacts
@@ -325,6 +381,14 @@ Name | Type | Description | Notes
325
381
-**Content-Type**: Not defined
326
382
-**Accept**: application/json
327
383
384
+
### HTTP response details
385
+
| Status code | Description | Response headers |
386
+
|-------------|-------------|------------------|
387
+
**200** | An object containing a list of contact objects | - |
[[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)
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
353
419
354
420
try:
355
421
# Removes a contact from a group
@@ -378,6 +444,15 @@ void (empty response body)
378
444
-**Content-Type**: Not defined
379
445
-**Accept**: application/json
380
446
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
+
381
456
[[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)
@@ -432,5 +509,14 @@ Name | Type | Description | Notes
432
509
-**Content-Type**: application/json
433
510
-**Accept**: application/json
434
511
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
+
435
521
[[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)
0 commit comments