Vonage / vonage-python-sdk

Vonage Server SDK for Python. API support for Voice, SMS, WhatsApp, Verify (2FA), Video Meetings and more.
https://developer.vonage.com
Apache License 2.0
192 stars 118 forks source link

changing numbers API to use header authentication #255

Closed maxkahan closed 1 year ago

maxkahan commented 1 year ago

The numbers api now uses header authentication instead of query parameter authentication.

Have added a type hint to the response to allow for easier debugging

Blackened the file

codecov-commenter commented 1 year ago

Codecov Report

Merging #255 (049f087) into main (d338f37) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #255   +/-   ##
=======================================
  Coverage   97.25%   97.25%           
=======================================
  Files          20       20           
  Lines         728      729    +1     
=======================================
+ Hits          708      709    +1     
  Misses         20       20           
Impacted Files Coverage Δ
src/vonage/client.py 96.29% <100.00%> (+0.01%) :arrow_up:
src/vonage/number_management.py 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more