![]() ![]() Additional features of the Python SMS gatewayĪs I’ve mentioned, messaging using Python can be modified by setting the delivery time, custom SMS sender name field, and custom content. This is why the Python library has separate functions for them. However, they are mutually exclusive, and using them simultaneously will cause an API error. The to and group parameters are directed to the same server query. With another method, you can use this facility in the following code: from smsapi.client import SmsApiPlClient In the Customer Portal, you’ll find the ability to create recipient groups, which streamlines organising and sending SMS in Python script. Results = (to=receivers, message='Hello receivers!')Īs I’ve mentioned, the object returned by the sending order is iterable, so the above for loop will write the details of individual messages on the console. Nothing could be simpler! Instead of a single phone number, you need to provide a list: from smsapi.client import SmsApiPlClient Your bulk SMS campaigns wouldn’t be possible without the ability to send messages to multiple recipients simultaneously. Tutorial: how to send SMS messages using SMS API parts – how many parts it is divided into.message – the content of the text message.The other fields of the SmsSendResult are optional and are present if the details=1 parameter is used: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |