module Appilf::Client::WatchedItems
Public Instance Methods
create_watched_item(item_type, item_id)
click to toggle source
# File lib/appilf/client/watched_items.rb, line 7 def create_watched_item(item_type, item_id) response = authenticated_api_post(watched_items_path, { item_type: item_type, item_id: item_id }) Appilf::Util.translate_from_response(response) end
delete_watched_item(item_type, item_id)
click to toggle source
# File lib/appilf/client/watched_items.rb, line 15 def delete_watched_item(item_type, item_id) authenticated_api_delete(watched_items_path, { item_type: item_type, item_id: item_id }) end
watched_items_path()
click to toggle source
# File lib/appilf/client/watched_items.rb, line 22 def watched_items_path "#{authenticated_user_path}/watched-items" end