SDK Python oficial para integrar OAuth, chamadas, OTP, WhatsApp, SMS e saldo com a API v2 da Nvoip.
Project description
nvoip-python
SDK e exemplos oficiais da Nvoip para integrar a API v2 com OAuth, chamadas, OTP, WhatsApp, SMS e saldo em Python.
Requisitos
- Python 3.10+
Instalacao
pip install nvoip
Configuracao
export NVOIP_NUMBERSIP="seu_numbersip"
export NVOIP_USER_TOKEN="seu_user_token"
export NVOIP_OAUTH_CLIENT_ID="seu_client_id"
export NVOIP_OAUTH_CLIENT_SECRET="seu_client_secret"
export NVOIP_CALLER="1049"
export NVOIP_TARGET_NUMBER="11999999999"
Fluxos cobertos
- gerar
access_token - renovar token
- consultar saldo
- enviar SMS
- realizar chamada
- enviar OTP
- validar OTP
- listar templates de WhatsApp
- enviar template de WhatsApp
Exemplos
python3 examples/create_access_token.pypython3 examples/get_balance.pypython3 examples/create_call.pypython3 examples/send_sms.pypython3 examples/send_otp.pypython3 examples/check_otp.pypython3 examples/list_whatsapp_templates.pypython3 examples/send_whatsapp_template.py
SDK web
Para o fluxo de popup com telefone e codigo, use o repositório nvoip-web-sdk. Este repo cobre o consumo server-side da API.
Links oficiais
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nvoip-0.1.0.tar.gz.
File metadata
- Download URL: nvoip-0.1.0.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41b577f8dc16608148916a911321b5577f770fc9fc5b189b2deb1002d8481f8e
|
|
| MD5 |
f4d1b5c1f8ae9b72c1d80673ad628de6
|
|
| BLAKE2b-256 |
6d71fd6b8df5927d525fd77b715eadf3d9e2db4f8383c03129c83493c0819b99
|
Provenance
The following attestation bundles were made for nvoip-0.1.0.tar.gz:
Publisher:
publish.yml on Nvoip/nvoip-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nvoip-0.1.0.tar.gz -
Subject digest:
41b577f8dc16608148916a911321b5577f770fc9fc5b189b2deb1002d8481f8e - Sigstore transparency entry: 1409457038
- Sigstore integration time:
-
Permalink:
Nvoip/nvoip-python@a1ca31279c4440805a58bb9445e329fcc042ebdf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Nvoip
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a1ca31279c4440805a58bb9445e329fcc042ebdf -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file nvoip-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nvoip-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2378820284fb0042a2ff84bd30a175853c40dc49cf589a14fda0f96da7e738e9
|
|
| MD5 |
2111c6784012004e22a4feb83d2b3dd9
|
|
| BLAKE2b-256 |
fee5306f250fff2506927a092773aa11f8524b2baac6deb5d3058835998fbfed
|
Provenance
The following attestation bundles were made for nvoip-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Nvoip/nvoip-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nvoip-0.1.0-py3-none-any.whl -
Subject digest:
2378820284fb0042a2ff84bd30a175853c40dc49cf589a14fda0f96da7e738e9 - Sigstore transparency entry: 1409457041
- Sigstore integration time:
-
Permalink:
Nvoip/nvoip-python@a1ca31279c4440805a58bb9445e329fcc042ebdf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Nvoip
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a1ca31279c4440805a58bb9445e329fcc042ebdf -
Trigger Event:
workflow_dispatch
-
Statement type: