Sha256: 4a9af10d6c84d7b051aa62e73addb6f1d47197213e17be4258adc3f8e1621729

Contents?: true

Size: 1.88 KB

Versions: 1

Compression:

Stored size: 1.88 KB

Contents

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

module Vk
  module API
    class Users < Vk::Schema::Namespace
      module Methods
        # Returns a list of IDs of users and communities followed by the user.
        class GetSubscriptions < Schema::Method
          # @!group Properties

          self.open = true
          self.method = 'users.getSubscriptions'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [Integer] :user_id User ID.
          #   @option arguments [Boolean] :extended '1' — to return a combined list of users and communities; '0' — to return separate lists of users and communities (default)
          #   @option arguments [Integer] :offset Offset needed to return a specific subset of subscriptions.
          #   @option arguments [Integer] :count Number of users and communities to return.
          #   @option arguments [Array] :fields @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
          #   @return [Users::Methods::GetSubscriptions]

          # @!group Arguments

          # @return [Integer] User ID.
          attribute :user_id, API::Types::Coercible::Int.optional
          # @return [Boolean] '1' — to return a combined list of users and communities; '0' — to return separate lists of users and communities (default)
          attribute :extended, API::Types::Bool.optional
          # @return [Integer] Offset needed to return a specific subset of subscriptions.
          attribute :offset, API::Types::Coercible::Int.optional
          # @return [Integer] Number of users and communities to return.
          attribute :count, API::Types::Coercible::Int.optional
          # @return [Array] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
          attribute :fields, API::Types::Coercible::Array.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/users/methods/get_subscriptions.rb