Send SMS with Python
To send bulk, single, or OTP SMS from your software developed with Python, you can use the following example.
import requests
string = """
<request>
  <authentication>
    <username></username>
    <password></password>
  </authentication>
  <order>
    <sender>APITEST</sender>
    <sendDateTime></sendDateTime>
    <message>
      <text><![CDATA[Mesaj metniniz]]></text>
      <receipents>
        <number>505702xxxx</number>
        <number>535410xxxx</number>
      </receipents>
    </message>
  </order>
</request>
"""
r = requests.post("https://api.iletimerkezi.com/v1/send-sms", data={'data': string})
print(r.status_code, r.reason)