Skip to content

Merging from dev - #5

Merged
tchellomello merged 5 commits into
masterfrom
dev
Feb 12, 2017
Merged

Merging from dev#5
tchellomello merged 5 commits into
masterfrom
dev

Conversation

@tchellomello

Copy link
Copy Markdown
Member

Merging from dev

…tions.

This patch will try to use the old token and if fails a new one will be placed
at self._params. It also allows users to pass extra parameters to the
given connection too.

In [5]: myring.history(limit=1)
params ==> %s {'api_version': '9', 'auth_token': '3pJyU1nuxctB56sHWg9W', 'limit': '2'}
self._params ==> %s {'api_version': '9', 'auth_token': '3pJyU1nuxctB56sHWg9W', 'limit': '2'}

.... REFRESHING auth_token because the older has expired ....

params ==> %s {'api_version': '9', 'auth_token': 'SYDCAsQzAzGF1JBZJG82', 'limit': '2'}
self._params ==> %s {'api_version': '9', 'auth_token': 'SYDCAsQzAzGF1JBZJG82', 'limit': '2'}
Out[5]:
[{'answered': False,
  'created_at': '2017-02-12T00:42:05.000Z',
  'doorbot': {'description': 'Front Door', 'id': 1572563},
  'events': [],
  'favorite': False,
  'id': 1234567,
  'kind': 'motion',
  'recording': {'status': 'ready'},
  'snapshot_url': ''}]
@tchellomello
tchellomello merged commit 6eb5706 into master Feb 12, 2017
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant