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
- Support for Independent SMS, Voice and Verify APIs with tests as well as current client methods
4
+
- Getters/Setters to extract/rewrite custom attributes
5
+
- PSD2 Verification support
6
+
- Dropping support for Python 2.7
7
+
- Roadmap to better error handling
8
+
- Supporting Python 3.8
9
+
1
10
# 2.4.0
2
-
* Application V2 API added under `Client.application_v2`
3
-
* Existing application methods under `Client` are now deprecated.
11
+
12
+
- Application V2 API added under `Client.application_v2`
13
+
- Existing application methods under `Client` are now deprecated.
4
14
5
15
# 2.3.0
6
-
* Explicit parameter list for the `nexmo.Client` constructor. **This may cause errors in code passing incorrect or spurious arguments to the Client constructor.**
7
-
* Secret Management
8
-
* Support for Authorization header authentication.
16
+
17
+
- Explicit parameter list for the `nexmo.Client` constructor. **This may cause errors in code passing incorrect or spurious arguments to the Client constructor.**
18
+
- Secret Management
19
+
- Support for Authorization header authentication.
9
20
10
21
# 2.2.0
11
-
* Add support for `redact_transaction`.
22
+
23
+
- Add support for `redact_transaction`.
12
24
13
25
# 2.1.0
14
-
* Add support for `get_recording`
15
-
* Add support for SMS conversion
16
-
* Add debug logging for most calls, under the 'nexmo' logger.
17
-
* Internal refactoring (affects only private methods.)
26
+
27
+
- Add support for `get_recording`
28
+
- Add support for SMS conversion
29
+
- Add debug logging for most calls, under the 'nexmo' logger.
30
+
- Internal refactoring (affects only private methods.)
18
31
19
32
# 2.0.0
20
-
* Drop support for Python 3.3 (in line with the cryptography library we depend upon)
21
-
* Ensure timestamp is added the params list if signing requests
22
-
* Avoid value injection in signature auth.
23
-
* Add support for different hashes for signature generation (thanks @trancee!)
24
-
* Tests ported to pytest
33
+
34
+
- Drop support for Python 3.3 (in line with the cryptography library we depend upon)
35
+
- Ensure timestamp is added the params list if signing requests
36
+
- Avoid value injection in signature auth.
37
+
- Add support for different hashes for signature generation (thanks @trancee!)
38
+
- Tests ported to pytest
25
39
26
40
# 1.5.0
27
41
28
-
* Add ability to provide a file path as private_key param no the nexmo.Client constructor
42
+
- Add ability to provide a file path as private_key param no the nexmo.Client constructor
29
43
30
-
* Add send/stop endpoints for audio/speech/dtmf
44
+
- Add send/stop endpoints for audio/speech/dtmf
31
45
32
-
* Add new number insight endpoints
46
+
- Add new number insight endpoints
33
47
34
48
# 1.4.0
35
49
36
-
* Add new Voice API call methods
50
+
- Add new Voice API call methods
37
51
38
-
* Add Application API methods
52
+
- Add Application API methods
39
53
40
-
* Add check_signature method for checking callback signatures
54
+
- Add check_signature method for checking callback signatures
41
55
42
-
* Deprecate old Verify API methods
56
+
- Deprecate old Verify API methods
43
57
44
58
# 1.3.0
45
59
46
-
* Add get_sms_pricing method
60
+
- Add get_sms_pricing method
47
61
48
-
* Add get_voice_pricing method
62
+
- Add get_voice_pricing method
49
63
50
-
* Add get_event_alert_numbers method to get opt-in/opt-out numbers
64
+
- Add get_event_alert_numbers method to get opt-in/opt-out numbers
51
65
52
-
* Add resubscribe_event_alert_number method to opt-in a number
66
+
- Add resubscribe_event_alert_number method to opt-in a number
53
67
54
-
* Add more clearly named methods for Verify API
68
+
- Add more clearly named methods for Verify API
55
69
56
-
* Add app_name and app_version options
70
+
- Add app_name and app_version options
57
71
58
72
# 1.2.0
59
73
60
-
* Add topup method
74
+
- Add topup method
61
75
62
-
* Add update_settings method
76
+
- Add update_settings method
63
77
64
-
* Add api_host attribute
78
+
- Add api_host attribute
65
79
66
-
* Add ClientError and ServerError classes
80
+
- Add ClientError and ServerError classes
67
81
68
82
# 1.1.0
69
83
70
-
* Move repository to https://github.com/Nexmo/nexmo-python
84
+
- Move repository to https://github.com/Nexmo/nexmo-python
71
85
72
-
* Add get_basic_number_insight method for Number Insight Basic API
86
+
- Add get_basic_number_insight method for Number Insight Basic API
73
87
74
-
* Add get_number_insight method for Number Insight Standard API
88
+
- Add get_number_insight method for Number Insight Standard API
To create an instance of the Verify class, Just follow these steps:
269
+
#### Creating an instance of the class
270
+
271
+
To create an instance of the Verify class, Just follow the next steps:
272
+
280
273
281
274
-**Import the class from module** (3 different ways)
282
275
283
276
```python
284
277
#First way
285
278
from nexmo import Verify
286
-
279
+
287
280
#Second way
288
281
from nexmo.verify import Verify
289
-
282
+
290
283
#Third valid way
291
-
import nexmo #then use nexmo.Verify() to create an instance
284
+
import nexmo #then you can use nexmo.Verify() to create an instance
292
285
```
293
286
294
287
-**Create the instance**
288
+
295
289
296
290
```python
297
291
#First way - pass key and secret to the constructor
@@ -412,7 +406,6 @@ else:
412
406
print("Error: %s"% response["error_text"])
413
407
```
414
408
415
-
416
409
## Number Insight API
417
410
418
411
### Basic Number Insight
@@ -559,7 +552,6 @@ client.host('mio.nexmo.com') #Change host to mio.nexmo.com - this change will be
559
552
560
553
These attributes are private in the client class and the only way to access them is using the getters/setters we provide.
561
554
562
-
563
555
```python
564
556
from nexmo import Client
565
557
@@ -571,7 +563,9 @@ client.api_host('myapi.nexmo.com') # rewrite the value of api_host
571
563
```
572
564
573
565
## Frequently Asked Questions
566
+
574
567
### Dropping support for Python 2.7
568
+
575
569
Back in 2014 when Guido van Rossum, Python's creator and principal author, made the announcement, January 1, 2020 seemed pretty far away. Python 2.7’s sunset has happened, after which there’ll be absolutely no more support from the core Python team. Many utilized projects pledge to drop Python 2 support in or before 2020. [(Official statement here)](https://www.python.org/doc/sunset-python-2/).
576
570
577
571
Just because 2.7 isn’t going to be maintained past 2020 doesn’t mean your applications or libraries suddenly stop working but as of this moment we won't give official support for upcoming releases. Please read the official ["Porting Python 2 Code to Python 3" guide](https://docs.python.org/3/howto/pyporting.html). Please also read the [Python 3 Statement Practicalities](https://python3statement.org/practicalities/) for advice on sunsetting your Python 2 code.
@@ -580,25 +574,25 @@ Just because 2.7 isn’t going to be maintained past 2020 doesn’t mean your ap
580
574
581
575
The following is a list of Vonage APIs and whether the Python SDK provides support for them:
582
576
583
-
| API | API Release Status | Supported?
584
-
|----------|:---------:|:-------------:|
585
-
| Account API | General Availability |✅|
586
-
| Alerts API | General Availability |✅|
587
-
| Application API | General Availability |✅|
588
-
| Audit API |Beta |❌|
589
-
| Conversation API |Beta |❌|
590
-
| Dispatch API |Beta |❌|
591
-
| External Accounts API | Beta |❌|
592
-
| Media API |Beta | ❌|
593
-
| Messages API |Beta |❌|
594
-
| Number Insight API | General Availability |✅|
595
-
| Number Management API | General Availability |✅|
0 commit comments