Types

class myfitnesspal.types.CommandDefinition(**kwargs)
function: Callable
description: str
is_alias: bool
aliases: List[str]
class myfitnesspal.types.GoalDisplayDict(**kwargs)
id: str
display_type: str
nutrients: List[str]
class myfitnesspal.types.UnitPreferenceDict(**kwargs)
energy: str
weight: str
distance: str
height: str
water: str
class myfitnesspal.types.DiaryPreferencesDict(**kwargs)
default_foot_view: str
meal_names: List[str]
tracked_nutrients: List[str]
class myfitnesspal.types.UnitValueContainer(**kwargs)
unit: str
value: float
class myfitnesspal.types.GoalPreferencesDict(**kwargs)
workouts_per_week: int
weekly_workout_duration: int
weekly_exercise_energy: UnitValueContainer
weight_change_goal: UnitValueContainer
weight_goal: UnitValueContainer
diary_goal_display: str
home_goal_display: str
macro_goal_format: str
class myfitnesspal.types.LocationPreferencesDict(**kwargs)
time_zone: str
country_code: str
locale: str
postal_code: str
state: str
city: str
class myfitnesspal.types.AdminFlagDict(**kwargs)
status: str
has_changed_username: bool
forgot_password_or_username: bool
warnings: int
strikes: int
revoked_privileges: List
class myfitnesspal.types.AccountDict(**kwargs)
created_at: str
updated_at: str
last_login: str
valid_email: bool
registration_source: str
roles: List[str]
admin_flags: AdminFlagDict
class myfitnesspal.types.SystemDataDict(**kwargs)
login_streak: int
unseen_notifications: int
class myfitnesspal.types.UserProfile(**kwargs)
type: str
starting_weight_date: str
starting_weight: UnitValueContainer
main_image_url: str
main_image_id: Optional[Any]
birthdate: str
height: UnitValueContainer
first_name: Optional[str]
last_name: Optional[str]
sex: typing_extensions.Literal[M, F]
activity_factor: str
headline: Optional[str]
about: Optional[str]
why: Optional[str]
inspirations: List
class myfitnesspal.types.UserMetadata(**kwargs)
id: str
username: str
email: str
goal_displays: List[GoalDisplayDict]
unit_preferences: UnitPreferenceDict
diary_preferences: DiaryPreferencesDict
goal_preferences: GoalPreferencesDict
location_preferences: LocationPreferencesDict
account: AccountDict
system_data: SystemDataDict
step_sources: List
profiles: List[UserProfile]
class myfitnesspal.types.AuthData(**kwargs)
token_type: str
access_token: str
expires_in: int
refresh_token: str
user_id: str
class myfitnesspal.types.MealEntry(**kwargs)
name: str
nutrition_information: Dict[str, float]
class myfitnesspal.types.NoteDataDict(**kwargs)
body: str
type: str
date: str
class myfitnesspal.types.FoodItemNutritionDict(**kwargs)
calcium: float
carbohydrates: float
cholesterol: float
fat: float
fiber: float
iron: float
monounsaturated_fat: float
polyunsaturated_fat: float
potassium: float
protein: float
saturated_fat: float
sodium: float
sugar: float
trans_fat: float
vitamin_a: float
vitamin_c: float
class myfitnesspal.types.ServingSizeDict(**kwargs)
id: str
nutrition_multiplier: float
value: float
unit: str
index: int
class myfitnesspal.types.FoodItemDetailsResponse(**kwargs)
description: str
brand_name: Optional[str]
verified: bool
nutrition: FoodItemNutritionDict
calories: float
confirmations: int
serving_sizes: List[ServingSizeDict]
class myfitnesspal.types.NutritionInformation(**kwargs)
calories: str
carbohydrateContent: str
fiberContent: str
sugarContent: str
sodiumContent: str
proteinContent: str
fatContent: str
saturatedFatContent: str
monunsaturatedFatContent: str
polyunsaturatedFatContent: str
unsaturatedFatContent: str
transFatContent: str
class myfitnesspal.types.Recipe(**kwargs)
author: str
org_url: str
name: str
recipeYield: str
recipeIngredient: List[str]
nutrition: NutritionInformation
recipeInstructions: str
tags: List[str]