You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Messages API is an API that allows you to send messages via SMS, MMS, WhatsApp, Messenger and Viber. Call the API from your Python code by
148
+
passing a dict of parameters into the `client.messages.send_message()` method.
149
+
150
+
It accepts JWT or API key/secret authentication.
151
+
152
+
Some basic samples are below. For more detailed information and code snippets, please visit the [Vonage Developer Documentation](https://developer.vonage.com).
153
+
154
+
### Send an SMS
155
+
```python
156
+
responseData = client.messages.send_message({
157
+
'channel': 'sms',
158
+
'message_type': 'text',
159
+
'to': '447123456789',
160
+
'from': 'Vonage',
161
+
'text': 'Hello from Vonage'
162
+
})
163
+
```
164
+
165
+
### Send an MMS
166
+
Note: only available in the US. You will need a 10DLC number to send an MMS message.
@@ -509,12 +590,6 @@ client.api_host('myapi.vonage.com') # rewrite the value of api_host
509
590
510
591
## Frequently Asked Questions
511
592
512
-
### Dropping support for Python 2.7
513
-
514
-
Back in 2014 when Guido van Rossum, Python's creator and principal author, made the announcement, January 1, 2020 seemed pretty far away. Python 2.7’s sunset has happened, after which there’ll be absolutely no more support from the core Python team. Many utilized projects pledge to drop Python 2 support in or before 2020. [(Official statement here)](https://www.python.org/doc/sunset-python-2/).
515
-
516
-
Just because 2.7 isn’t going to be maintained past 2020 doesn’t mean your applications or libraries suddenly stop working but as of this moment we won't give official support for upcoming releases. Please read the official ["Porting Python 2 Code to Python 3" guide](https://docs.python.org/3/howto/pyporting.html). Please also read the [Python 3 Statement Practicalities](https://python3statement.org/practicalities/) for advice on sunsetting your Python 2 code.
517
-
518
593
### Supported APIs
519
594
520
595
The following is a list of Vonage APIs and whether the Python SDK provides support for them:
@@ -529,7 +604,7 @@ The following is a list of Vonage APIs and whether the Python SDK provides suppo
529
604
| Dispatch API | Beta | ❌ |
530
605
| External Accounts API | Beta | ❌ |
531
606
| Media API | Beta | ❌ |
532
-
| Messages API | Beta |❌|
607
+
| Messages API |General Availability |✅|
533
608
| Number Insight API | General Availability | ✅ |
534
609
| Number Management API | General Availability | ✅ |
0 commit comments