The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Type: Package
Title: R Interface to Google Fit API
Version: 0.4.0
Author: Marcin Szymanski
Maintainer: Marcin Szymanski <ms32035@gmail.com>
Description: Provides interface to Google Fit REST API v1 (see https://developers.google.com/fit/rest/v1/reference/).
License: MIT + file LICENSE
LazyData: TRUE
Depends: R (≥ 3.0), RCurl, jsonlite, bit64, httr
Imports: utils
RoxygenNote: 7.0.2
NeedsCompilation: no
Packaged: 2020-02-15 18:22:31 UTC; ms32035
Repository: CRAN
Date/Publication: 2020-02-15 21:30:06 UTC

R Interface To Google Fit API

Description

Provides interface to Google Fit REST API v1 (see <https://developers.google.com/fit/rest/v1/reference/>).

Sources available at https://github.com/ms32035/RGoogleFit


GetFitDataset

Description

Retrieves a dataset for a given datasource and time range defined by startTime and endTime. Refer to https://developers.google.com/fit/rest/v1/datasets for full documentation.

Usage

GetFitDataset(token, datasource, startTime, endTime)

Arguments

token

- OAuth 2.0 access token

datasource

- Data Stream ID

startTime

- Start time for dataset. Date datatype is required

endTime

- End time for dataset. Date datatype is required


GetFitDatasource

Description

Returns a list with datasource attributes. Refer to https://developers.google.com/fit/rest/v1/data-types for full documentation.

Usage

GetFitDatasource(token, datasource)

Arguments

token

- OAuth 2.0 access token

datasource

- Data Stream ID


GetFitDatasources

Description

GetFitDatasources returns a dataframe with user's datasources.

Usage

GetFitDatasources(token)

Arguments

token

- OAuth 2.0 access token


GetFitOauth2Object

Description

Returns the whole Oauth2 object. Useful for debugging purposes.

Usage

GetFitOauth2Object()

GetFitOauth2Token

Description

Retrieves or refreshes an OAuth2 token. Two options must be set:

Usage

GetFitOauth2Token()

NanosToPOSIXct

Description

Converts nanoseconds from epoch (as provided by Google Fit) to POSIXct

Usage

NanosToPOSIXct(nanos)

Arguments

nanos

- Nanoseconds from epoch

Examples

NanosToPOSIXct(1388534400000000000)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.