Class: Vk::API::Account::Methods::ChangePassword

Inherits:
Schema::Method
  • Object
show all
Defined in:
lib/vk/api/account/methods/change_password.rb

Overview

Changes a user password after access is successfully restored with the method.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Account::Methods::ChangePassword

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :restore_sid (String)

    Session id received after the method is executed.; (If the password is changed right after the access was restored)

  • :change_password_hash (String)

    Hash received after a successful OAuth authorization with a code got by SMS.; (If the password is changed right after the access was restored)

  • :old_password (String)

    Current user password.

  • :new_password (String)

    New password that will be set as a current



# File 'lib/vk/api/account/methods/change_password.rb', line 15

Instance Method Details

#change_password_hashString

Returns Hash received after a successful OAuth authorization with a code got by SMS.; (If the password is changed right after the access was restored).

Returns:

  • (String)

    Hash received after a successful OAuth authorization with a code got by SMS.; (If the password is changed right after the access was restored)



28
# File 'lib/vk/api/account/methods/change_password.rb', line 28

attribute :change_password_hash, API::Types::Coercible::String.optional.default(nil)

#new_passwordString

Returns New password that will be set as a current.

Returns:

  • (String)

    New password that will be set as a current



32
# File 'lib/vk/api/account/methods/change_password.rb', line 32

attribute :new_password, API::Types::Coercible::String

#old_passwordString

Returns Current user password.

Returns:

  • (String)

    Current user password.



30
# File 'lib/vk/api/account/methods/change_password.rb', line 30

attribute :old_password, API::Types::Coercible::String.optional.default(nil)

#restore_sidString

Returns Session id received after the method is executed.; (If the password is changed right after the access was restored).

Returns:

  • (String)

    Session id received after the method is executed.; (If the password is changed right after the access was restored)



26
# File 'lib/vk/api/account/methods/change_password.rb', line 26

attribute :restore_sid, API::Types::Coercible::String.optional.default(nil)