Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Favorites

José Ignacio Amelivia Santiago edited this page Jul 21, 2019 · 8 revisions

Get Favorite Activities

Get Favorite Activities reference on the official Fitbit documentation.

This function will return the list of a user's favorite activities as a JSON string.

Example call:

$favorite = $fitbit->activities()->favorites()->get();

Example formatted JSON output:

[
   {
      "activityId":19010,
      "description":"",
      "mets":6,
      "name":"Moving ice house (set up/drill holes, etc.)"
   }
]

Add Favorite Activity

Add Favorite Activity reference on the official Fitbit documentation.

This function takes an activity id integer and will add the activity with the given ID to user's list of favorite activities. It will always return an empty JSON string.

Example call:

$fitbit->activities()->favorites()->add(19010);

Example formatted JSON output:

{}

Remove Favorite Activity

Remove Favorite Activity reference on the official Fitbit documentation.

This function takes an activity id integer and will remove the activity with the given ID from a user's list of favorite activities. This function will always return an empty string.

Example call:

$fitbit->activities()->favorites()->remove(19010);

Example output:

""