class Podio::ConversationEvent

@see developers.podio.com/doc/conversations

Public Class Methods

add_participants(conversation_id, participants) click to toggle source
# File lib/podio/models/conversation_event.rb, line 21
def add_participants(conversation_id, participants)
  response = Podio.connection.post do |req|
    req.url "/conversation/#{conversation_id}/participant/v2/"
    req.body = { :participants => participants }
  end
  list response.body
end
change_subject(conversation_id, subject) click to toggle source
# File lib/podio/models/conversation_event.rb, line 42
def change_subject(conversation_id, subject)
  response = Podio.connection.put do |req|
    req.url "/conversation/#{conversation_id}/subject"
    req.body = { :subject => subject }
  end
  
  member response.body
end
create_reply(conversation_id, text, file_ids=[], embed_id=nil, embed_file_id=nil) click to toggle source
# File lib/podio/models/conversation_event.rb, line 29
def create_reply(conversation_id, text, file_ids=[], embed_id=nil, embed_file_id=nil)
  response = Podio.connection.post do |req|
    req.url "/conversation/#{conversation_id}/reply/v2"
    req.body = {:text => text, :file_ids => file_ids, :embed_id => embed_id, :embed_file_id => embed_file_id}
  end
  member response.body
end
find(id) click to toggle source

@see developers.podio.com/doc/conversations/get-conversation-event-35628220

# File lib/podio/models/conversation_event.rb, line 38
def find(id)
  member Podio.connection.get("/conversation/event/#{id}").body
end
find_all(conversation_id, options = {}) click to toggle source

@see developers.podio.com/doc/conversations/get-conversation-events-35440697

# File lib/podio/models/conversation_event.rb, line 15
def find_all(conversation_id, options = {})
  list Podio.connection.get { |req|
    req.url("/conversation/#{conversation_id}/event/", options)
  }.body
end