Last active
April 27, 2021 11:17
-
-
Save valakhosravi/3e3260eb30dc41bfefff9d7e60a937c9 to your computer and use it in GitHub Desktop.
Niazpardaz sms sending in python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def send_test_msg() { | |
| url = "http://www.payamak.vip/api/v1/RestWebApi/SendBatchSms" | |
| body = { | |
| 'userName': username, | |
| 'password': password, | |
| 'fromNumber': sender_number, | |
| 'toNumbers': number_list, # array | |
| 'messageContent': message, | |
| 'isFlash': False, | |
| } | |
| r = requests.post(url, data=body) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment