Created
November 2, 2016 15:02
-
-
Save ad-m/c7676540bcfe114e8dd1fd4bf9fa345f to your computer and use it in GitHub Desktop.
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
| $ python kod.py | |
| {u'status': u'success', u'message': u'OK', u'code': u'200', u'data': {u'account': XXXX, u'sms_id': u'XXX'}} |
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
| import requests | |
| appkey = 'X' | |
| secret = 'X' | |
| data = { | |
| "phone_number": "+48509992768", | |
| "sender_id": "SMS INFO", | |
| "message": "Test" | |
| } | |
| print requests.put('https://api.smslabs.net.pl/apiSms/sendSms', | |
| auth=(appkey, secret or ''), | |
| data=data).json() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment