Sha256: b30936d8cbfb549ba5f04230eeb7060c2fa64307e532add8f8c859bc8cbb2454

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

# frozen_string_literal: true
require 'vk/api/methods'

module Vk
  module API
    class Secure < Vk::Schema::Namespace
      module Methods
        # Checks the user authentification in 'IFrame' and 'Flash' apps using the 'access_token' parameter.
        class CheckToken < Schema::Method
          # @!group Properties

          self.open = false
          self.method = 'secure.checkToken'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [String] :token client 'access_token'
          #   @option arguments [String] :ip 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.
          #   @return [Secure::Methods::CheckToken]

          # @!group Arguments

          # @return [String] client 'access_token'
          attribute :token, API::Types::Coercible::String.optional
          # @return [String] 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.
          attribute :ip, API::Types::Coercible::String.optional
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vk-0.99.5.53.alpha lib/vk/api/secure/methods/check_token.rb