Loading .travis.yml +9 −12 Original line number Diff line number Diff line language: python python: 3.5 env: # Avoid testing pypy on travis until the following issue is fixed: # https://github.com/travis-ci/travis-ci/issues/4756 #- TOX_ENV=pypy - TOX_ENV=py35 - TOX_ENV=py34 - TOX_ENV=py33 - TOX_ENV=py27 - TOX_ENV=docs python: - pypy - pypy3.5 - 2.7 - 3.4 - 3.5 - 3.6 install: - pip install coveralls tox script: tox -e $TOX_ENV - pip install coveralls tox-travis script: tox after_success: coveralls CHANGELOG.rst +9 −0 Original line number Diff line number Diff line 0.3.1 (2019-05-24) ================== * Fix auth with newer versions of OAuth libraries while retaining backward compatibility 0.3.0 (2017-01-24) ================== * Surface errors better * Use requests-oauthlib auto refresh to automatically refresh tokens if possible 0.2.4 (2016-11-10) ================== * Call a hook if it exists when tokens are refreshed Loading README.rst +3 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,9 @@ python-fitbit .. image:: https://requires.io/github/orcasgit/python-fitbit/requirements.png?branch=master :target: https://requires.io/github/orcasgit/python-fitbit/requirements/?branch=master :alt: Requirements Status .. image:: https://badges.gitter.im/orcasgit/python-fitbit.png :target: https://gitter.im/orcasgit/python-fitbit :alt: Gitter chat Fitbit API Python Client Implementation Loading docs/index.rst +82 −1 Original line number Diff line number Diff line Loading @@ -40,9 +40,90 @@ either ``None`` or a ``date`` or ``datetime`` object as ``%Y-%m-%d``. .. autoclass:: fitbit.Fitbit :private-members: :members: .. method:: body(date=None, user_id=None, data=None) Get body data: https://dev.fitbit.com/docs/body/ .. method:: activities(date=None, user_id=None, data=None) Get body data: https://dev.fitbit.com/docs/activity/ .. method:: foods_log(date=None, user_id=None, data=None) Get food logs data: https://dev.fitbit.com/docs/food-logging/#get-food-logs .. method:: foods_log_water(date=None, user_id=None, data=None) Get water logs data: https://dev.fitbit.com/docs/food-logging/#get-water-logs .. method:: sleep(date=None, user_id=None, data=None) Get sleep data: https://dev.fitbit.com/docs/sleep/ .. method:: heart(date=None, user_id=None, data=None) Get heart rate data: https://dev.fitbit.com/docs/heart-rate/ .. method:: bp(date=None, user_id=None, data=None) Get blood pressure data: https://dev.fitbit.com/docs/heart-rate/ .. method:: delete_body(log_id) Delete a body log, given a log id .. method:: delete_activities(log_id) Delete an activity log, given a log id .. method:: delete_foods_log(log_id) Delete a food log, given a log id .. method:: delete_foods_log_water(log_id) Delete a water log, given a log id .. method:: delete_sleep(log_id) Delete a sleep log, given a log id .. method:: delete_heart(log_id) Delete a heart log, given a log id .. method:: delete_bp(log_id) Delete a blood pressure log, given a log id .. method:: recent_foods(user_id=None, qualifier='') Get recently logged foods: https://dev.fitbit.com/docs/food-logging/#get-recent-foods .. method:: frequent_foods(user_id=None, qualifier='') Get frequently logged foods: https://dev.fitbit.com/docs/food-logging/#get-frequent-foods .. method:: favorite_foods(user_id=None, qualifier='') Get favorited foods: https://dev.fitbit.com/docs/food-logging/#get-favorite-foods .. method:: recent_activities(user_id=None, qualifier='') Get recently logged activities: https://dev.fitbit.com/docs/activity/#get-recent-activity-types .. method:: frequent_activities(user_id=None, qualifier='') Get frequently logged activities: https://dev.fitbit.com/docs/activity/#get-frequent-activities .. method:: favorite_activities(user_id=None, qualifier='') Get favorited foods: https://dev.fitbit.com/docs/activity/#get-favorite-activities Indices and tables ================== Loading fitbit/__init__.py +3 −3 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ Fitbit API Library ------------------ :copyright: 2012-2017 ORCAS. :copyright: 2012-2019 ORCAS. :license: BSD, see LICENSE for more details. """ Loading @@ -17,8 +17,8 @@ __author_email__ = 'bpitcher@orcasinc.com' __copyright__ = 'Copyright 2012-2017 ORCAS' __license__ = 'Apache 2.0' __version__ = '0.3.0' __release__ = '0.3.0' __version__ = '0.3.1' __release__ = '0.3.1' # Module namespace. Loading Loading
.travis.yml +9 −12 Original line number Diff line number Diff line language: python python: 3.5 env: # Avoid testing pypy on travis until the following issue is fixed: # https://github.com/travis-ci/travis-ci/issues/4756 #- TOX_ENV=pypy - TOX_ENV=py35 - TOX_ENV=py34 - TOX_ENV=py33 - TOX_ENV=py27 - TOX_ENV=docs python: - pypy - pypy3.5 - 2.7 - 3.4 - 3.5 - 3.6 install: - pip install coveralls tox script: tox -e $TOX_ENV - pip install coveralls tox-travis script: tox after_success: coveralls
CHANGELOG.rst +9 −0 Original line number Diff line number Diff line 0.3.1 (2019-05-24) ================== * Fix auth with newer versions of OAuth libraries while retaining backward compatibility 0.3.0 (2017-01-24) ================== * Surface errors better * Use requests-oauthlib auto refresh to automatically refresh tokens if possible 0.2.4 (2016-11-10) ================== * Call a hook if it exists when tokens are refreshed Loading
README.rst +3 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,9 @@ python-fitbit .. image:: https://requires.io/github/orcasgit/python-fitbit/requirements.png?branch=master :target: https://requires.io/github/orcasgit/python-fitbit/requirements/?branch=master :alt: Requirements Status .. image:: https://badges.gitter.im/orcasgit/python-fitbit.png :target: https://gitter.im/orcasgit/python-fitbit :alt: Gitter chat Fitbit API Python Client Implementation Loading
docs/index.rst +82 −1 Original line number Diff line number Diff line Loading @@ -40,9 +40,90 @@ either ``None`` or a ``date`` or ``datetime`` object as ``%Y-%m-%d``. .. autoclass:: fitbit.Fitbit :private-members: :members: .. method:: body(date=None, user_id=None, data=None) Get body data: https://dev.fitbit.com/docs/body/ .. method:: activities(date=None, user_id=None, data=None) Get body data: https://dev.fitbit.com/docs/activity/ .. method:: foods_log(date=None, user_id=None, data=None) Get food logs data: https://dev.fitbit.com/docs/food-logging/#get-food-logs .. method:: foods_log_water(date=None, user_id=None, data=None) Get water logs data: https://dev.fitbit.com/docs/food-logging/#get-water-logs .. method:: sleep(date=None, user_id=None, data=None) Get sleep data: https://dev.fitbit.com/docs/sleep/ .. method:: heart(date=None, user_id=None, data=None) Get heart rate data: https://dev.fitbit.com/docs/heart-rate/ .. method:: bp(date=None, user_id=None, data=None) Get blood pressure data: https://dev.fitbit.com/docs/heart-rate/ .. method:: delete_body(log_id) Delete a body log, given a log id .. method:: delete_activities(log_id) Delete an activity log, given a log id .. method:: delete_foods_log(log_id) Delete a food log, given a log id .. method:: delete_foods_log_water(log_id) Delete a water log, given a log id .. method:: delete_sleep(log_id) Delete a sleep log, given a log id .. method:: delete_heart(log_id) Delete a heart log, given a log id .. method:: delete_bp(log_id) Delete a blood pressure log, given a log id .. method:: recent_foods(user_id=None, qualifier='') Get recently logged foods: https://dev.fitbit.com/docs/food-logging/#get-recent-foods .. method:: frequent_foods(user_id=None, qualifier='') Get frequently logged foods: https://dev.fitbit.com/docs/food-logging/#get-frequent-foods .. method:: favorite_foods(user_id=None, qualifier='') Get favorited foods: https://dev.fitbit.com/docs/food-logging/#get-favorite-foods .. method:: recent_activities(user_id=None, qualifier='') Get recently logged activities: https://dev.fitbit.com/docs/activity/#get-recent-activity-types .. method:: frequent_activities(user_id=None, qualifier='') Get frequently logged activities: https://dev.fitbit.com/docs/activity/#get-frequent-activities .. method:: favorite_activities(user_id=None, qualifier='') Get favorited foods: https://dev.fitbit.com/docs/activity/#get-favorite-activities Indices and tables ================== Loading
fitbit/__init__.py +3 −3 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ Fitbit API Library ------------------ :copyright: 2012-2017 ORCAS. :copyright: 2012-2019 ORCAS. :license: BSD, see LICENSE for more details. """ Loading @@ -17,8 +17,8 @@ __author_email__ = 'bpitcher@orcasinc.com' __copyright__ = 'Copyright 2012-2017 ORCAS' __license__ = 'Apache 2.0' __version__ = '0.3.0' __release__ = '0.3.0' __version__ = '0.3.1' __release__ = '0.3.1' # Module namespace. Loading