searchNewsfeed: Search for Posts Mentioning a String

Description Usage Arguments Details Value Author(s) References Examples

Description

Returns a data.frame with publicly available information on all VK posts that mention a specific query.

Usage

1
searchNewsfeed(query, access_token, start_time = NULL, end_time = NULL, verbose = FALSE)

Arguments

query

A string to search in VK posts.

access_token

Your access token (see ?makeAccessToken).

start_time

Start date and time (UTC) for posts to retrieve. If NULL (default), a day before the current moment is assumed.

end_time

End date and time (UTC) for posts to retrieve. If NULL (default), the current moment is assumed.

verbose

Boolean: suppress informational messages if FALSE (default).

Details

Time is specified as UTC.

Value

A data.frame with information on posts and their attachments.

Author(s)

Denis Stukal denis.stukal@nyu.edu

References

VK API Methods: Newsfeed (https://vk.com/dev/newsfeed.search)

Examples

1
2
3
4
5
6
7
8
## Not run: 
mytoken = 'XXXXXXXXXXXXXX'
newposts <- searchNewsfeed(query = 'moscow', access_token = mytoken,
                            start_time = '2018-04-22 00:00:00', 
                            end_time = '2018-05-02 23:00:00')
str(newposts)

## End(Not run)

denisStukal/Rvk documentation built on June 3, 2019, 5:56 p.m.