python-ring-doorbell icon indicating copy to clipboard operation
python-ring-doorbell copied to clipboard

get_snapshot method of doorbot class doesn't work

Open zhenqidong opened this issue 5 years ago • 3 comments

>>> type(f)
<class 'ring_doorbell.doorbot.RingDoorBell'>

>>> c=f.get_snapshot()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/gamma/projects/python/ring/lib/python3.6/site-packages/ring_doorbell/doorbot.py", line 427, in get_snapshot
    self._ring.query(url)
  File "/home/gamma/projects/python/ring/lib/python3.6/site-packages/ring_doorbell/__init__.py", line 101, in query
    timeout=timeout,
  File "/home/gamma/projects/python/ring/lib/python3.6/site-packages/ring_doorbell/auth.py", line 89, in query
    req.raise_for_status()
  File "/home/gamma/projects/python/ring/lib/python3.6/site-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 405 Client Error: Method Not Allowed for url: https://api.ring.com/clients_api/snapshots/timestamps?api_version=9

zhenqidong avatar Apr 26 '20 21:04 zhenqidong

Having the same issue

hesto2 avatar Apr 29 '20 02:04 hesto2

Have you patched the doorbot.py as shown here: https://github.com/tchellomello/python-ring-doorbell/pull/196/files?

budachst avatar May 03 '20 07:05 budachst

This may (or may not) help. https://github.com/tchellomello/python-ring-doorbell/issues/214#issuecomment-650620143

clinkadink avatar Jun 27 '20 20:06 clinkadink

There hasn't been any activity on this issue recently. This issue has been automatically marked as stale because of that. It will be closed if no further activity occurs. Please make sure to update to the latest ring_doorbell version and check if that solves the issue. Thank you for your contributions.

github-actions[bot] avatar Apr 18 '24 18:04 github-actions[bot]