Learn R Programming

rvkstat (version 3.2.0)

vkGetUserWall: Get Posts From Userwall.

Description

Return posts list from userwall 'Vkontakte'.

Usage

vkGetUserWall(
  user_id      = NULL,
  domain       = NULL,
  filter       = NULL,
  username     = getOption("rvkstat.username"),
	api_version  = getOption("rvkstat.api_version"),
  token_path   = vkTokenPath(),
  access_token = getOption("rvkstat.access_token")
)

Arguments

user_id

user ID for which you want to get a list of friends. If the parameter is not specified, it is considered that it is equal to the identifier of the current user.

domain

short address of user or community.

filter

determines what types of posts on the wall should be received. Possible values: suggests <U+2014> suggested entries on the community wall, postponed <U+2014> deferred entries, owner <U+2014> owner wall entries, others <U+2014> not wall owner entries, all <U+2014> all entries on the wall (owner + others), Default: all.

username

Your vkontakte login.

api_version

Vkontakte API version.

token_path

Path to dir with credentials

access_token

API access tokens obtained using vkAuth or vkGetToken functions

Value

Date frame with the following values:

1. id

record ID.

2. from_id

identifier of the post author.

3. to_id

identifier of the owner of the wall on which the entry is placed.

4. date

post publication time

5. post_type

record type, can be one of the following values: post, copy, reply, postpone, suggest.

6. text

text entry.

7. can_delete

information about whether the current user can delete a post (1 <U+2014> maybe, 0 <U+2014> cannot).

8. comments_count

number of comments.

9. likes_count

the number of users who liked the post.

10. reposts_count

number of users who copied the record.

11. attachment_type

type of media attachment of the record (photos, links, etc.)

References

Documentation for API method wall.get: https://vk.com/dev/wall.get

Examples

Run this code
# NOT RUN {
## auth
my_tok <- vkAuth(app_id = 1, app_secret = "H2Pk8htyFD8024mZaPHm")

## get posts
my_vk_wall <- vkGetUserWall(user_id = 7437995,
                            access_token = my_tok$access_token)

# }

Run the code above in your browser using DataLab