Skip to main content

Vonage SMS package

Project description

Vonage SMS Package

This package contains the code to use Vonage's SMS API in Python.

It includes a method for sending SMS messages and returns an SmsResponse class to handle the response.

Usage

It is recommended to use this as part of the main vonage package. The examples below assume you've created an instance of the vonage.Vonage class called vonage_client.

Send an SMS

Create an SmsMessage object, then pass into the Sms.send method.

from vonage_sms import SmsMessage, SmsResponse

message = SmsMessage(to='1234567890', from_='Acme Inc.', text='Hello, World!')
response: SmsResponse = vonage_client.sms.send(message)

print(response.model_dump(exclude_unset=True))

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

vonage-sms-1.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

vonage_sms-1.0.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file vonage-sms-1.0.0.tar.gz.

File metadata

  • Download URL: vonage-sms-1.0.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for vonage-sms-1.0.0.tar.gz
Algorithm Hash digest
SHA256 db2f3ee0a43d27e340a20a25237eb02b310b6cc288d734c3407376aad66e3046
MD5 5671c1d30172cad97aefdac5345b30a3
BLAKE2b-256 b3825d72d18f7b2d9ff94192895897482e8181abf47cd0b2aea7bb5583640d52

See more details on using hashes here.

File details

Details for the file vonage_sms-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: vonage_sms-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for vonage_sms-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b037b48eefdf26366f17737086d437a4f2be09fa79724768c8df64a290319d5
MD5 aa8ba346c73989502e00e3d352368948
BLAKE2b-256 8b9693e5fd48864d316c97b9aba209e416dc1108050ce423f1fe2c48f203d446

See more details on using hashes here.

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