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.1.1.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

vonage_sms-1.1.1-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

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