google.fit#

class platypush.plugins.google.fit.GoogleFitPlugin(user_id='me', *args, **kwargs)[source]#

Bases: GooglePlugin

Google Fit plugin.

Requires:

  • google-api-python-client (pip install google-api-python-client)

  • oauth2client (pip install oauth2client)

__init__(user_id='me', *args, **kwargs)[source]#
Parameters:

user_id (str or int) – Default Google user_id (default: ‘me’, default configured account user)

get_data(data_source_id, user_id=None, limit=None)[source]#

Get raw data for the specified data_source_id

Parameters:
  • data_source_id (str) – Data source ID, see get_data_sources

  • user_id – Target user ID (default: configured user).

  • limit – Maximum number of items to return.

get_data_sources(user_id=None)[source]#

Get the available data sources for the specified user_id