Modernizing the Fitbit Developer Experience.
The Fitbit Web APIs are moving to a new, scalable infrastructure. We will be deprecating the legacy Fitbit Web API in September 2026. To ensure uninterrupted data continuity for your users, you will need to migrate your applications. Detailed migration guides are live on the Google Health API developer site.
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.