module Freefeed::V1::Posts
Public Instance Methods
create_post(post)
click to toggle source
# File lib/freefeed/v1/posts.rb, line 10 def create_post(post) authenticated_request(:post, "/v1/posts", json: post) end
delete_post(id)
click to toggle source
# File lib/freefeed/v1/posts.rb, line 18 def delete_post(id) authenticated_request(:delete, "/v1/posts/#{id}") end
disable_comments(id)
click to toggle source
# File lib/freefeed/v1/posts.rb, line 46 def disable_comments(id) authenticated_request(:post, "/v1/posts/#{id}/disableComments") end
enable_comments(id)
click to toggle source
# File lib/freefeed/v1/posts.rb, line 50 def enable_comments(id) authenticated_request(:post, "/v1/posts/#{id}/enableComments") end
hide(id)
click to toggle source
# File lib/freefeed/v1/posts.rb, line 30 def hide(id) authenticated_request(:post, "/v1/posts/#{id}/hide") end
like(id)
click to toggle source
# File lib/freefeed/v1/posts.rb, line 22 def like(id) authenticated_request(:post, "/v1/posts/#{id}/like") end
save(id)
click to toggle source
# File lib/freefeed/v1/posts.rb, line 38 def save(id) authenticated_request(:post, "/v1/posts/#{id}/save") end
unhide(id)
click to toggle source
# File lib/freefeed/v1/posts.rb, line 34 def unhide(id) authenticated_request(:post, "/v1/posts/#{id}/unhide") end
unlike(id)
click to toggle source
# File lib/freefeed/v1/posts.rb, line 26 def unlike(id) authenticated_request(:post, "/v1/posts/#{id}/unlike") end
unsave(id)
click to toggle source
# File lib/freefeed/v1/posts.rb, line 42 def unsave(id) authenticated_request(:delete, "/v1/posts/#{id}/save") end
update_post(id, post)
click to toggle source
# File lib/freefeed/v1/posts.rb, line 14 def update_post(id, post) authenticated_request(:put, "/v1/posts/#{id}", json: post) end