vkOAuth: Client authorization

Description Usage Arguments Details Examples

View source: R/auth.R

Description

Client authorization

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## 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)

Dementiy/vkR documentation built on Oct. 1, 2020, 9:48 a.m.