orcasgit / python-fitbit

Fitbit API Python Client Implementation
Other
623 stars 330 forks source link

Add function to post food item to user's database #155

Open adoyon23 opened 4 years ago

adoyon23 commented 4 years ago

Added a new function log_food(self, foodId, mealTypeId, unitId, amount, date, user_id=None) which allows you to save a food item to the currently authenticated user's database on the Fitbit website.

Reference: https://dev.fitbit.com/build/reference/web-api/food-logging#logging-and-deleting-collection-data