Releases: Vonage/vonage-python-sdk
Releases · Vonage/vonage-python-sdk
v3.2.0
Beta release of Vonage Video API Server SDK
- No functionality change from v3.2.0b0. Using a major version number to keep releases chronologically and numerically more synced up.
- This is a beta version that can be installed with
pip install --pre vonage
Beta release of Vonage Video API Server SDK
Contains base functionality of session creation, signalling, moderation and archiving.
3.1.0 release
- Supporting Python 3.11
- Upgrading and removing some dev dependencies
3.0.2 release
Fixing bug with auth selection in messages.py
module
3.0.1 release
3.0.1
- Fixed bug where a JWT was created globally and could expire. Now a new JWT is generated when a request is made.
- Fixed bug where timeout was not passed to session object.
v3.0.0 release
Deprecates a lot of old methods, lots of internal refactoring, adding support for a couple of new endpoints.
Breaking changes:
- Removed deprecated methods from
client.py
that are now available in specific modules related to each of the available Vonage APIs. E.g. to call the number insight API, the methods are now called in this way:client.number_insight.get_basic_number_insight(...)
, or by instantiating theNumberInsight
class directly:ni = vonage.NumberInsight(client)
,ni.get_basic_number_insight(...)
etc. - Removed automatic client creation when instantiating an
sms
,voice
orverify
object. You can now use these APIs from a client instance you create (e.g.client.sms.send_message()
) or pass in a client to the API class to create it (e.g.sms = vonage.Sms(client)
), as has been the case since v2.7.0 of the SDK. - Removed methods to call the Message Search API, which has been retired by Vonage.
- Removed deprecated voice and number insight methods from
voice.py
(initiate_call, initiate_tts_call and initiate_tts_prompt_call
) andnumber_insight.py
(request_number_insight
). - Deprecated the ApplicationV2 class and created an Application class with the same methods to bring the naming in line with other classes. This can be called from the client object with
client.application.create_application(...)
etc. or directly withapplication = vonage.Application(client)
,application.create_application(...)
etc. - Deprecated old Pricing API methods
get_sms_pricing
andget_voice_pricing
. - Deprecated Redact class as it's a dev preview product that's unsupported in the SDK and will be removed in a later release.
- Renamed the
Account.delete_secret()
method torevoke_secret()
to bring it in line with what is described in our documentation.
Enhancements:
- Added
get_all_countries_pricing
method toAccount
object. - Added a
type
parameter for pricing calls, sosms
orvoice
pricing can now be chosen. - Added
max_retries
,timeout
,pool_connections
andpool_maxsize
optional keyword arguments to theClient
class, which can now be specified on instantiation and used in the API calls made with the client.
Messages API support
Adding support for v1.0 of the Vonage Messages API
Adding classes for more APIs, Client class now instantiates API classes so methods can be called consistently
- Moved some client methods into their own classes:
account.py, application.py, message_search.py, number_insight.py, numbers.py, short_codes.py, ussd.py
- Deprecated the corresponding client methods. These will be removed in a major release that's coming soon.
- Client now instantiates a class object for each API when it is created, e.g.
vonage.Client(key="mykey", secret="mysecret")
instantiates instances ofAccount
,Sms
,NumberInsight
etc. These instances can now be called directly fromClient
, e.g.
client = vonage.Client(key="mykey", secret="mysecret")
print(f"Account balance is: {client.account.get_balance()}")
print("Sending an SMS")
client.sms.send_message(
"from": "Vonage",
"to": "SOME_PHONE_NUMBER",
"text": "Hello from Vonage's SMS API"
)