
The registered username parameter to be passed. You should use either one to authenticate your login.

Sms python code#
This project has adopted the Microsoft Open Source Code of Conduct.įor more information see the Code of Conduct FAQ or contact with any additional questions or comments.Authenticate your API request using userId-password or apiKey. You will only need to do this once across all repos using our CLA. Simply follow the instructions provided by the bot. When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the
Sms python license#
Most contributions require you to agree to aĬontributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. This project welcomes contributions and suggestions. If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project Contributing
Sms python how to#
Please take a look at the samples directory for detailed examples of how to use this library to send an sms.

message: The message that you want to send.to: The phone number or list of phone numbers you wish to send a message to.from_: An SMS enabled phone number associated with your communication service.Once the client is initialized, the send method can be invoked: from import SendSmsOptionsĮnable_delivery_report=True, # optional property # AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_CLIENT_SECRET as env variables.Įndpoint = " sms_client = SmsClient(endpoint, DefaultAzureCredential()) # To use Azure Active Directory Authentication (DefaultAzureCredential) make sure to have Sms_client = om_connection_string(connection_string) from import SmsClientįrom azure.identity import DefaultAzureCredentialĬonnection_str = "endpoint=ENDPOINT accessKey=KEY" To initialize the SMS Client, the connection string can be used to instantiate.Īlternatively, you can also use Active Directory authentication using DefaultAzureCredential. The following section provides several code snippets covering some of the most common Azure Communication Services tasks, including:
Sms python install#
Install the Azure Communication SMS client library for Python with pip: pip install azure-communication-smsĪzure Communication SMS package is used to do following: You must have a phone number configured that is associated with an Azure subscription.You can use the Azure Portal or the Azure PowerShell to set it up. A deployed Communication Services resource.Python 2.7, or 3.6 or later is required to use this package.

Source code | Package (Pypi) | API reference documentation | Product documentation Getting started Prerequisites Read more about Azure Communication Services here

This package contains a Python SDK for Azure Communication Services for SMS.
