1. Jeffrey Goettsch
  2. py-pushnotify
  3. Issues
Issue #10 invalid

api_key problem

Anonymous created an issue

I am adding the correct api_key )retrieved from my google account

but when i call client.adde_key() and notify() i get this error

C:\Python27\python.exe H:/event-notification/send.py
pushnotify.nma.Client-DEBUG: _post sending data: {'application': u'test', 'developerkey': u' I DONT WANT TO POST MY KEYS HERE', 'apikey': 'I DONT WANT TO POST MY KEYS HERE', 'event': u'testing', 'description': u'testing nma notification'}
pushnotify.nma.Client-DEBUG: _post sending to url: https://www.notifymyandroid.com/publicapi/notify
Traceback (most recent call last):
  File "H:/event-notification/send.py", line 89, in <module>
    test_nma_payload()
  File "H:/event-notification/send.py", line 74, in test_nma_payload
    send_notify(payloadkey,payload)
  File "H:/event-notification/send.py", line 51, in send_notify
    obj.send_notification()
  File "H:\event-notification\push_notify.py", line 74, in send_notification
    result = client.notify(self._description, self._event, split=True)
  File "C:\Python27\lib\site-packages\pushnotify-0.5.1-py2.7.egg\pushnotify\nma.py", line 179, in notify
    send_notify(this_desc, event, kwargs)
  File "C:\Python27\lib\site-packages\pushnotify-0.5.1-py2.7.egg\pushnotify\nma.py", line 169, in send_notify
    self._parse_response(response)
  File "C:\Python27\lib\site-packages\pushnotify-0.5.1-py2.7.egg\pushnotify\nma.py", line 99, in _parse_response
    self._raise_exception()
  File "C:\Python27\lib\site-packages\pushnotify-0.5.1-py2.7.egg\pushnotify\nma.py", line 109, in _raise_exception
    int(self._last['code']))
pushnotify.exceptions.FormatError: ("Parameter 'apikey' has one or more keys with invalid length.", 400)

Comments (5)

  1. Log in to comment