lib/ayadn/endpoints.rb in ayadn-1.7.7 vs lib/ayadn/endpoints.rb in ayadn-1.8.0
- old
+ new
@@ -255,22 +255,26 @@
def channels(options)
"#{@channels_url}?access_token=#{Settings.user_token}#{API.build_query(options)}"
end
def channel(channel_id, options = {})
- "#{@channels_url}?ids=#{channel_id.join(',')}&access_token=#{Settings.user_token}#{API.build_query(options)}"
+ "#{@channels_url}?ids=#{channel_id.join(',')}&access_token=#{Settings.user_token}#{API.build_query(options)}&include_marker=1"
end
def messages(channel_id, options = {})
- "#{@channels_url}#{channel_id}/messages?access_token=#{Settings.user_token}#{API.build_query(options)}&include_machine=1"
+ "#{@channels_url}#{channel_id}/messages?access_token=#{Settings.user_token}#{API.build_query(options)}&include_machine=1&include_marker=1"
end
def avatar
"#{@users_url}me/avatar"
end
def cover
"#{@users_url}me/cover"
+ end
+
+ def update_marker
+ "#{@posts_url}marker?access_token=#{Settings.user_token}"
end
end
end