harvestProfile: Retrieve the profile of Google+ users

Description Usage Arguments Details Value See Also Examples

View source: R/harvest.R

Description

This function retrieves the profile of one or more Google+ user(s). Google calls this 'get people'. The results are either returned as a raw list with one element per profile or parsed using a parsing function, either the prepackaged one parseProfile or a user-supplied one.

Usage

1
harvestProfile(id, parseFun = parseProfile)

Arguments

id

A character vector of the Google+ user ID(s).

parseFun

the function used to parse the results. If NULL the raw list of results is returned.

Details

When using your own parsing function, be sure that it takes a single element from the returned list and returns either a vector of values or a single row data frame.

Value

The function returns either a raw list or a parsed version. See Details.

See Also

Google+ API documentation: https://developers.google.com/+/api/latest/people/get

Examples

1
2
3
4
## Not run: 
gProfile <- harvestProfile("+google")

## End(Not run)

plusser documentation built on May 2, 2019, 8:17 a.m.