Support for the legacy Fitbit Web API ends on September 30, 2026
Important: Support for the legacy Fitbit Web API ends on September 30, 2026. After this date the API will continue to operate, but Google will no longer fix bugs or provide API support. On October 30, 2026, the Fitbit Web API will be turned off and will no longer function or sync data to or from Fitbit users. To continue accessing data for your users after this date, migrate to the Google Health API.
Console API
chevron down
 

Console API

Variable: console

Type: Console

Interface: Console

Outputs a message to the Console.

Methods

assert()

assert(assertion: boolean, message?: any)

Returns: void

Writes an error message to the console if the assertion is false. If the assertion is true, nothing happens.

error()

error(message?: any)

Returns: void

Outputs an error message.

info()

info(message?: any)

Returns: void

Outputs an informational message.

log()

log(message?: any)

Returns: void

Outputs a message.

trace()

Returns: void

Outputs a stack trace.

warn()

warn(message?: any)

Returns: void

Outputs a warning message.