Skip to content

Instantly share code, notes, and snippets.

@ad-m
Created November 2, 2016 15:02
Show Gist options
  • Select an option

  • Save ad-m/c7676540bcfe114e8dd1fd4bf9fa345f to your computer and use it in GitHub Desktop.

Select an option

Save ad-m/c7676540bcfe114e8dd1fd4bf9fa345f to your computer and use it in GitHub Desktop.
$ 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'}}
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