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.2.tar.gz
(6.0 kB
view details)
Built Distribution
File details
Details for the file vonage_sms-1.1.2.tar.gz
.
File metadata
- Download URL: vonage_sms-1.1.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 634e510d3e38f38f4fdced4356525e43c2b31b318ca7e536cc5ceb325393fbcb |
|
MD5 | cc5b02bf71eff770ec3afb0239bd5be8 |
|
BLAKE2b-256 | 3394eec08b71508bc64987e6ce701dc3db60a8f69d87b9ed77dc9b0c865cae41 |
File details
Details for the file vonage_sms-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: vonage_sms-1.1.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90349b46263f3c0515e356df669221c682b5d4267a5eb6e815933aec7aaa2c4d |
|
MD5 | 04b172468d89b06a4913053683b15ef0 |
|
BLAKE2b-256 | 5b02da58c5f060b432322e3f2f6fc034841acb2abd1ac5226ba21d2a9809863c |