mne to akosi nefundzi a kedze moc nevidim do pythona, potreboval by som usmernit:
auth presla:
Waiting for you to grant access ...
Successful. You can now use 'gcsms send' to send SMS
$ echo 'Hi, I was sent from bash' | python gcsms.py send|grep -i error
Traceback (most recent call last):
File "gcsms.py", line 268, in
main()
File "gcsms.py", line 258, in main
cmd_send(args, cfg)
File "gcsms.py", line 150, in cmd_send
access_token
File "gcsms.py", line 211, in do_api
return json.loads(urlopen(req).read().decode('utf8'))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 400, in open
response = meth(req, response)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 513, in http_response
'http', request, response, code, msg, hdrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 438, in error
return self._call_chain(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 372, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 521, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden
$ python --version
Python 2.7.1
osx 10.7.5
e:
skusil som to vo virtuale slax7, python 2.7.3 a presne taka ista chyba
hmm, what am I doing wrong?