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
_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
18
24
19
25
## Getting started
20
26
21
27
### Prerequisites
22
28
23
-
- Python 2.7, or 3.6 or later is required to use this package.
24
-
- A deployed Communication Services resource. You can use the [Azure Portal](https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-azp) or the [Azure PowerShell](https://docs.microsoft.com/powershell/module/az.communication/new-azcommunicationservice) to set it up.
29
+
- Python 3.7 or later is required to use this package.
30
+
- A deployed Communication Services resource. You can use the [Azure Portal](/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-azp) or the [Azure PowerShell](/powershell/module/az.communication/new-azcommunicationservice) to set it up.
25
31
- You must have a phone number configured that is associated with an Azure subscription
26
32
27
33
### Install the package
@@ -51,7 +57,7 @@ The following section provides several code snippets covering some of the most c
51
57
To initialize the SMS Client, the connection string can be used to instantiate.
52
58
Alternatively, you can also use Active Directory authentication using DefaultAzureCredential.
SMS operations will throw an exception if the request to the server fails. The SMS client will raise exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/azure-communication-sms_1.0.1/sdk/core/azure-core/README.md). Exceptions will not be thrown if the error is caused by an individual message, only if something fails with the overall request. Please use the successful flag to validate each individual result to verify if the message was sent.
117
+
SMS operations will throw an exception if the request to the server fails. The SMS client will raise exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/azure-communication-sms_1.1.0/sdk/core/azure-core/README.md). Exceptions will not be thrown if the error is caused by an individual message, only if something fails with the overall request. Please use the successful flag to validate each individual result to verify if the message was sent.
print("Message with message id {} was successful sent to {}"
@@ -135,7 +141,7 @@ except Exception as ex:
135
141
136
142
### More sample code
137
143
138
-
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-python/tree/azure-communication-sms_1.0.1/sdk/communication/azure-communication-sms/samples) directory for detailed examples of how to use this library to send an sms.
144
+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-python/tree/azure-communication-sms_1.1.0/sdk/communication/azure-communication-sms/samples) directory for detailed examples of how to use this library to send an sms.
139
145
140
146
## Provide Feedback
141
147
@@ -153,7 +159,6 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
153
159
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
0 commit comments