Class: Vk::API::Secure::Methods::SendSmsNotification

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

Overview

Sends 'SMS' notification to a user's mobile device.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Secure::Methods::SendSmsNotification

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :user_id (Integer)

    ID of the user to whom SMS notification is sent. The user shall allow the application to send him/her notifications (, +1).

  • :message (String)

    'SMS' text to be sent in 'UTF-8' encoding. Only Latin letters and numbers are allowed. Maximum size is '160' characters.


# File 'lib/vk/api/secure/methods/send_sms_notification.rb', line 15

Instance Method Details

#messageString

Returns 'SMS' text to be sent in 'UTF-8' encoding. Only Latin letters and numbers are allowed. Maximum size is '160' characters.

Returns:

  • (String)

    'SMS' text to be sent in 'UTF-8' encoding. Only Latin letters and numbers are allowed. Maximum size is '160' characters.


26
# File 'lib/vk/api/secure/methods/send_sms_notification.rb', line 26

attribute :message, API::Types::Coercible::String

#user_idInteger

Returns ID of the user to whom SMS notification is sent. The user shall allow the application to send him/her notifications (, +1).

Returns:

  • (Integer)

    ID of the user to whom SMS notification is sent. The user shall allow the application to send him/her notifications (, +1).


24
# File 'lib/vk/api/secure/methods/send_sms_notification.rb', line 24

attribute :user_id, API::Types::Coercible::Int