Learn R Programming

plusser (version 0.4-0)

harvestActivity: Retrieve the users that acted on a G+ post

Description

This function retrieves the users that either +1ed or reshared a post. Google calls this `list by activity`.

Usage

harvestActivity(activity, kind = c("plusoners", "resharers"), nextToken = NULL)

Arguments

activity
The post ID for which the users should be retrieved.
kind
Denoting the kind of person to be retrieved. Either plusoners or resharers.
nextToken
This is used internally to retrieve additional pages of answers from the Google+ API. Users won't need to set this argument.

Value

Returns a (character) vector of Google+ user IDs.

See Also

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

Examples

Run this code
## Not run: 
# ## User IDs of people that +1ed this post
# users.p <- harvestActivity("z131ihvycs30ivrxm04cjbiwjkbqujka0sk0k", "plusoners")
# ## End(Not run)

Run the code above in your browser using DataLab