Class: Vk::API::Secure::Methods::CheckToken
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Secure::Methods::CheckToken
- Defined in:
- lib/vk/api/secure/methods/check_token.rb
Overview
Checks the user authentification in 'IFrame' and 'Flash' apps using the 'access_token' parameter.
Arguments collapse
-
#ip ⇒ String
User 'ip address'.
-
#token ⇒ String
Client 'access_token'.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Secure::Methods::CheckToken
|
# File 'lib/vk/api/secure/methods/check_token.rb', line 15
|
Instance Method Details
#ip ⇒ String
Returns user 'ip address'. Note that user may access using the 'ipv6' address, in this case it is required to transmit the 'ipv6' address. ; If not transmitted, the address will not be checked.
26 |
# File 'lib/vk/api/secure/methods/check_token.rb', line 26 attribute :ip, API::Types::Coercible::String.optional.default(nil) |