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.2.0.tar.gz (6.1 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.2.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file vonage_sms-1.2.0.tar.gz.

File metadata

  • Download URL: vonage_sms-1.2.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.3

File hashes

Hashes for vonage_sms-1.2.0.tar.gz
Algorithm Hash digest
SHA256 ed6695090a31ac88a11e607bd090aea8bc4d75583ea67c9c183205d141665770
MD5 40732c62aac78b97b4185abd5ace577e
BLAKE2b-256 953c81c51f508c5c73c8181b2fb1880ba87adeb43ac5b16331bf279fb5ac7cb2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for vonage_sms-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15280dbd962179a13790f85518701a018580d5959f4d3c66fe7f081d4586baee
MD5 cf75068f7039d3dd034d0e3171f8ed8b
BLAKE2b-256 9633786aff30834f515411f92058efe0e5bdf5b65e27215d2668ac2669636639

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