FITBIT¶
Members¶
-
fitbit.requestAuth({ scope = "" })¶ “Request auth on specified scopes”
Parameters: scope (str) – list of scopes Raises: AUTH_FAIL: auth failed Raises: AUTH_NOT_GRANTED: user did not grant auth Raises: SCOPE_NOT_FOUND: scope could not be found Raises: UNRECOVERABLE_AUTH_EXCEPTION: an unrecoverable exception was thrown Return type: AuthOkEvent
-
fitbit.removeAuth({ userid = "", scope = "" })¶ “Remove auth for userid, on specified scopes”
Parameters: - scope (str) – list of scopes
- userid (str) – userid
Raises: ACCOUNT_NOT_FOUND: account could not be found
Raises: SCOPE_NOT_FOUND: scope could not be found
-
fitbit.addSubscription({ userId = userid, collection = "" })¶ “Adds a subscription on certain user collection”
Parameters: - userid (str) – userid
- collection (str) – collection to which this subscription applies to