class ReamazeAPI::Conversation

Public Instance Methods

all(params = {}) click to toggle source

Public: Retrieve conversations.

params - Hash of parameters to pass to the API

API Routes

GET /conversations

See also: www.reamaze.com/api/get_conversations

Returns a Hash.

# File lib/reamaze_api/conversation.rb, line 14
def all(params = {})
  paginate "/conversations", :conversations, params
end
create(params) click to toggle source

Public: Create a new conversation (on behalf of a customer).

params - Hash of parameters to pass to the API

API Routes

POST /conversations

See also: www.reamaze.com/api/post_conversations

Returns a Hash.

# File lib/reamaze_api/conversation.rb, line 44
def create(params)
  post "/conversations", params
end
find(slug) click to toggle source

Public: Retrieve a specific conversation.

slug - Conversation slug

API Routes

GET /conversations/{slug}

See also: www.reamaze.com/api/get_conversation

Returns a Hash.

# File lib/reamaze_api/conversation.rb, line 29
def find(slug)
  get "/conversations/#{slug}"
end