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

Description Usage Arguments Value See Also Examples

View source: R/harvest.R

Description

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

Usage

1
2
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

1
2
3
4
5
## Not run: 
## User IDs of people that +1ed this post
users.p <- harvestActivity("z131ihvycs30ivrxm04cjbiwjkbqujka0sk0k", "plusoners")

## End(Not run)

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