Comments (2)
@tenderitaf Try authd_client.log_activity(data['activityLog'])
Still, some of your parameters aren't right. Your json file is an example of what fitbit will respond with after you post an activity log. Your POST should have these parameters:
POST Parameters
activityId optional/required This is the Activity ID of the activity, directory activity, or intensity level activity. If you pass directory activity id, Fitbit calculates and substitutes it with the corresponding intensity level activity id based on the specified distance and/or duration.
activityName optional/required Custom activity name. Either activityId or activityName must be provided.
manualCalories optional/required Calories burned, specified manually. Required with activityName parameter, otherwise optional.
startTime required Activity start time. Hours and minutes in the format HH:mm:ss.
durationMillis required Duration in milliseconds.
date required Log entry date; in the format yyyy-MM-dd.
distance optional/required Distance; required for logging directory activity. In the format X.XX and in the selected distanceUnit or in the unit system that corresponds to the Accept-Language header provided.
distanceUnit optional Distance measurement unit. Steps units are available only for "Walking" (activityId=90013) and "Running" (activityId=90009) directory activities and their intensity levels.
from python-fitbit.
Thanks a lot it worked :)
from python-fitbit.
Related Issues (20)
- Problems with Auth 2.0 HOT 3
- Help needed?
- How to get activity statistics by activity type when its started from the tracker?
- unable to get sleep summary data using time_series('sleep') HOT 2
- Source tarball on PyPi does not include tests or tox config
- Error trying to get heart data HOT 4
- Close Chrome tab after validating API HOT 3
- AttributeError: module 'fitbit' has no attribute 'Fitbit' HOT 1
- Works well Locally, but not Deployed
- Add multi-date functionality
- Force sync HOT 1
- wait_for_tstate_lock: ENGINE Waiting for thread Thread-4
- fitbit do not allow callback URLs with http anymore HOT 2
- Add lifetime stats, friends and badges API HOT 1
- [INFO] Repo not maintained anymore ? HOT 13
- Unable to establish connection with Fitbit API
- Exporting Breathing Rate Intraday by Date HOT 10
- urllib failure
- TCX endpoint decoding error error
- Download Skin Temperature and SpO2 data HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-fitbit.