lib/ayadn/api.rb in ayadn-1.7.0 vs lib/ayadn/api.rb in ayadn-1.7.1
- old
+ new
@@ -223,9 +223,14 @@
# options = {:count => 200, :before_id => resp['meta']['min_id']}
# end
# big
end
+ def get_channel channel_id, options
+ options = {:recent_message => 1, :annotations => 1, :before_id => nil}
+ get_parsed_response(Endpoints.new.channel(channel_id, options))
+ end
+
def get_messages(channel_id, options)
options = paginate options, "channel:#{channel_id}"
get_parsed_response(Endpoints.new.messages(channel_id, options))
end