lib/douban_api/client/event.rb in douban_api-0.1.3 vs lib/douban_api/client/event.rb in douban_api-0.1.4
- old
+ new
@@ -24,12 +24,12 @@
# @authenticated false
# @param id [String] 活动的id
# @return [Array<Hashie::Mash>] 用户列表
# @example 获取参与 id为17790089 活动的用户
# Douban.event_participants('17790089')
- def event_participants(id)
- response = get "v2/event/#{id}/participants"
+ def event_participants(id, options={})
+ response = get("v2/event/#{id}/participants", options)
response["users"]
end
# 获取活动感兴趣的用户
#
@@ -38,11 +38,11 @@
# @authenticated false
# @param id [String] 活动的id
# @return [Array<Hashie::Mash>] 用户列表
# @example 获取对 id为17790089 活动感兴趣的用户
# Douban.event_wishers('17790089')
- def event_wishers(id)
- response = get "v2/event/#{id}/wishers"
+ def event_wishers(id, options={})
+ response = get("v2/event/#{id}/wishers", options)
response["users"]
end
# 获取用户创建的活动
#