class

Vk::Auth

Inherits Reference < Object

Constants

AUTHORIZE_URL = "https://oauth.vk.com/authorize"
DISPLAY = "mobile"
Log = Vk::Log.for(self)
REDIRECT_URI = "https://oauth.vk.com/blank.html"
RESPONSE_TYPE = "token"
USER_AGENT = "Opera/9.80 (Android; Opera Mini/7.5.33942/191.308; U; en) Presto/2.12.423 Version/12.16"
VERSION = {{ (`shards version /tmp/tmp.lfeLIB/src/src`).chomp.stringify }}

Constructors

new(client_id : String, *, api_version : String = Vk::API_VERSION, user_agent : String = USER_AGENT)

Implicit Flow for User Access Token

https://vk.com/dev/implicit_flow_user

Source

Instance methods

authorized?
Source
get_token(email : String, password : String, *, permissions = [] of String, revoke = false)

Additinal parameters:

  • permissions - Access Permissions for User Token (https://vk.com/dev/permissions)
  • revoke - Sets that permissions request should not be skipped even if a user is already authorized
Source
token
Source

Nested types