Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 312 Bytes
import requests
auth = (
'<API Username>',
'<API Password>'
)
fields = {
'from': 'PythonElk',
'to': '+46723175800',
'message': 'Test Message To your phone.'
}
response = requests.post(
"https://api.46elks.com/a1/SMS",
data=fields,
auth=auth
)
print(response.text)