vkOAuth {vkR}R Documentation

Client authorization

Description

Client authorization

Usage

vkOAuth(client_id, scope = "friends", email, password)

Arguments

client_id

Application ID

scope

Requested application access permissions (see below).

email

Email or phone number

password

Password

Details

List of Available Settings of Access Permissions:

Examples

## Not run: 
# an example of an authenticated request
vkOAuth(client_id = 123456,
        scope = "friends,groups,messages",
        email = "your_email@example.com",
        password = "your_secret_password")

# save access token for future sessions
at <- getAccessToken()

# an example of request
me()

# an example of an authenticated request without specifying email and password
vkOAuth(client_id = 123456, scope = "friends,groups,messages")

# copy access token from browser address bar
setAccessToken("your_secret_access_token")

## End(Not run)

[Package vkR version 0.2 Index]