Sha256: 3fd2f7c5632ab60f7babe259718e88d8ff85292877f38f40138f03bf92a05acd
Contents?: true
Size: 784 Bytes
Versions: 1
Compression:
Stored size: 784 Bytes
Contents
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<Fixnum, *Hash>] 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vk-0.6.5.53 | lib/vk/dsl/wall.rb |