fitbit-client-0.0.2
توضیحات
Call Fitbit's web API from terminal
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fitbit-client-0.0.2 |
| نام | fitbit-client |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Audrow Nash |
| ایمیل نویسنده | audrow.nash@gmail.com |
| آدرس صفحه اصلی | https://github.com/robotpt/fitbit-client |
| آدرس اینترنتی | https://pypi.org/project/fitbit-client/ |
| مجوز | MIT |
README
======
[](https://badge.fury.io/py/fitbit-client)
[](https://travis-ci.com/robotpt/fitbit-client)
[](https://coveralls.io/github/robotpt/fitbit-client?branch=master)
A Fitbit client that works from terminal to read steps data without launching a web browser or requiring that the user is signed in.
Features
--------
* No web sign-in is prompted when running the app
* Access doesn't expire
* Uses a one-time code to get the OAuth2 access token
* Saves a file with the credentials that it uses by default when run
* Exposes a function for generic requests to Fitbit's API
* Returns intraday steps data for a specified date in a Pandas Dataframe and the datetime of the last sync
Setup
-----
Follow the instructions [here](https://www.forkingbytes.com/blog/using-the-fitbit-api-from-a-command-line-application-in-go/) to obtain the following:
* Client ID
* Code
* Authorization
> Note that for access to intraday data, create a personal app.
Then, either
* Run this program and enter information when prompted
* Or pass this information as function arguments
You can then start making Fitbit API calls. The program supports intraday steps and the last sync time with convenience functions, and there is also a function `get_url` for making generic requests to Fitbit's API.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.0 | Python |
نحوه نصب
نصب پکیج whl fitbit-client-0.0.2:
pip install fitbit-client-0.0.2.whl
نصب پکیج tar.gz fitbit-client-0.0.2:
pip install fitbit-client-0.0.2.tar.gz