Class: ReamazeAPI::Conversation
- Defined in:
- lib/reamaze_api/conversation.rb
Instance Method Summary collapse
-
#all(params = {}) ⇒ Object
Public: Retrieve conversations.
-
#create(params) ⇒ Object
Public: Create a new conversation (on behalf of a customer).
-
#find(slug) ⇒ Object
Public: Retrieve a specific conversation.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from ReamazeAPI::Resource
Instance Method Details
#all(params = {}) ⇒ Object
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.
14 15 16 |
# File 'lib/reamaze_api/conversation.rb', line 14 def all(params = {}) paginate "/conversations", :conversations, params end |
#create(params) ⇒ Object
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.
44 45 46 |
# File 'lib/reamaze_api/conversation.rb', line 44 def create(params) post "/conversations", params end |
#find(slug) ⇒ Object
Public: Retrieve a specific conversation.
slug - Conversation slug
API Routes
GET /conversations/{slug}
See also: www.reamaze.com/api/get_conversation
Returns a Hash.
29 30 31 |
# File 'lib/reamaze_api/conversation.rb', line 29 def find(slug) get "/conversations/#{slug}" end |