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
185 stars 112 forks source link

use Vonage JWT generator instead of PyJWT for requests #262

Closed maxkahan closed 1 year ago

maxkahan commented 1 year ago

Uses the new vonage jwt generator instead of PyJWT. Custom claims can be specified and it can also be used independently of the python sdk to generate jwts for use with vonage apis.

Refactoring, editing the readme, adding additional tests.

I've also added a new test for verify v2.

codecov-commenter commented 1 year ago

Codecov Report

Merging #262 (6f4796d) into main (896f990) will increase coverage by 0.06%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #262      +/-   ##
==========================================
+ Coverage   97.03%   97.10%   +0.06%     
==========================================
  Files          21       21              
  Lines         809      794      -15     
==========================================
- Hits          785      771      -14     
+ Misses         24       23       -1     
Impacted Files Coverage Δ
src/vonage/__init__.py 100.00% <100.00%> (ø)
src/vonage/client.py 93.92% <100.00%> (-0.47%) :arrow_down:

... and 1 file with indirect coverage changes

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