2

我目前正在利用 Sinch SMS 发送基于事件的 SMS 通知,用于使用 sinchsms 在 python 中的 Web 应用程序。当我发送消息时,我收到此异常:

HTTP Error 403: Sandobx SMS only allowed to be sent to verified numbers.

使用此堆栈跟踪:

File "/usr/local/lib/python2.7/site-packages/sinchsms.py", line 79, in send_message
    return self._request(self.SEND_SMS_URL + to_number, values)
  File "/usr/local/lib/python2.7/site-packages/sinchsms.py", line 40, in _request
    connection = urllib2.urlopen(request)
  File "/usr/local/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/local/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/local/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Sandobx SMS only allowed to be sent to verified numbers.

我在 sinch 短信仪表板上看不到验证号码或注册号码的方法

4

1 回答 1

2

在沙盒模式下,您只能向一个号码发送短信(一些骗子/欺诈者的不幸副作用)。您可以在https://www.sinch.com/dashboard/#/account下验证您的号码。要发送到任何号码,您需要付款并请求生产密钥。

于 2015-05-27T07:49:30.660 回答