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)
Built Distribution
Close
Hashes for vonage_sms-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6739911109873bb34ea30cc38bc281b25be29f7b827c26b3f978bc4f25a087ab |
|
MD5 | 42cfe88ca660941dc6011ce62ab9eec5 |
|
BLAKE2b-256 | 23e2395d765da450f9436aea31b23baa9be0afdba0e751090d578671afbeee96 |