This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import requests | |
text = u'這是一封測試簡訊 This a test SMS.' | |
endpoint = 'https://rest.nexmo.com/sms/json' | |
data = { | |
'username': '{yours}', | |
'password': '{yours}', |