lib/vk/dsl.rb in vk-0.0.2 vs lib/vk/dsl.rb in vk-0.0.3

- old
+ new

@@ -78,9 +78,18 @@ # @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(uid, options = {}) + options[:filter] ||= :all request('wall.get', options.merge(owner_id: uid)) + end + + def get_wall_statuses(posts) + request('wall.getById', posts: posts) + end + + def get_wall_status(id) + get_wall_statuses(id)[0] end end end