Method: Livefyre::Comment#like!

Defined in:
lib/livefyre/comment.rb

#like!(user) ⇒ Object

Public: Likes a comment as the passed user

Returns [Boolean] true on success Raises [APIException] on failure



128
129
130
131
132
133
134
135
# File 'lib/livefyre/comment.rb', line 128

def like!(user)
  response = @client.quill.post "/api/v3.0/message/#{id}/like/", {:collection_id => conversation.id, :lftoken => user.token}
  if response.success?
    true
  else
    raise APIException.new(response.body)
  end
end