Skip to main content

SDK Python oficial para integrar OAuth, chamadas, OTP, WhatsApp, SMS e saldo com a API v2 da Nvoip.

Project description

nvoip-python

Nvoip API v2 Docs Postman Stack License: GPL-3.0

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.py
  • python3 examples/get_balance.py
  • python3 examples/create_call.py
  • python3 examples/send_sms.py
  • python3 examples/send_otp.py
  • python3 examples/check_otp.py
  • python3 examples/list_whatsapp_templates.py
  • python3 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nvoip-0.1.0.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nvoip-0.1.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

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

Hashes for nvoip-0.1.0.tar.gz
Algorithm Hash digest
SHA256 41b577f8dc16608148916a911321b5577f770fc9fc5b189b2deb1002d8481f8e
MD5 f4d1b5c1f8ae9b72c1d80673ad628de6
BLAKE2b-256 6d71fd6b8df5927d525fd77b715eadf3d9e2db4f8383c03129c83493c0819b99

See more details on using hashes here.

Provenance

The following attestation bundles were made for nvoip-0.1.0.tar.gz:

Publisher: publish.yml on Nvoip/nvoip-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for nvoip-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2378820284fb0042a2ff84bd30a175853c40dc49cf589a14fda0f96da7e738e9
MD5 2111c6784012004e22a4feb83d2b3dd9
BLAKE2b-256 fee5306f250fff2506927a092773aa11f8524b2baac6deb5d3058835998fbfed

See more details on using hashes here.

Provenance

The following attestation bundles were made for nvoip-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Nvoip/nvoip-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page