Learn R Programming

plusser (version 0.4-0)

harvestProfile: Retrieve the profile of Google+ users

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

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.

Value

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

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.

See Also

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

Examples

Run this code
## Not run: 
# gProfile <- harvestProfile("+google")
# ## End(Not run)

Run the code above in your browser using DataLab