require 'vk/exceptions' module Vk module DSL module Wall # Statuses from user’s wall # @param [Fixnum] user_id user identifier # @param [Hash] options # @option options [Fixnum] :count how many statuses to request # @option options [Fixnum] :offset offset of statuses to request # @option options [:owner, :others, :all] :filter (:all) what kind of statuses to request # @return [Array] count of statuses and each status in hash def get_wall(user_id, options = {}) options[:filter] ||= :all options[:owner_id] = user_id Vk::Result.new('groups.get', Vk::Post, options) end def get_wall_statuses(posts) request('wall.getById', posts: posts) end end end end