Description Usage Arguments Details Examples
Client authorization
1 | vkOAuth(client_id, scope = "friends", email, password)
|
client_id |
Application ID |
scope |
Requested application access permissions (see below). |
email |
Email or phone number |
password |
Password |
List of Available Settings of Access Permissions:
friends Access to friends.
photos Access to photos.
audio Access to audios.
video Access to videos.
docs Access to documents.
notes Access to user notes.
pages Access to wiki pages.
status Access to user status.
wall Access to standard and advanced methods for the wall.
groups Access to user groups.
messages Access to advanced methods for messaging.
notifications Access to notifications about answers to the user.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.