Sha256: 8713fe38bd1198db4faedc8a8325229108dbfb2ae5a6ac1738be1d3e25231c34
Contents?: true
Size: 864 Bytes
Versions: 5
Compression:
Stored size: 864 Bytes
Contents
module PostmanMta class Conversation < ApplicationModel def index(params = {}) get('/api/v1/conversations', body: params) end def folder(folder, params = {}) params = { folder: folder }.merge(params) get('/api/v1/conversations', body: params) end def find(conversation_id) get("/api/v1/conversations/#{conversation_id}") end def move_to_trash(conversation_id) delete("/api/v1/conversations/#{conversation_id}/trash") end def mark_as_read(params = {}) patch('/api/v1/conversations/mark', body: params.merge(event: 'mark_as_read')) end def mark_as_unread(params = {}) patch('/api/v1/conversations/mark', body: params.merge(event: 'mark_as_unread')) end def move(params = {}) patch('/api/v1/conversations/move', body: params) end end end
Version data entries
5 entries across 5 versions & 1 rubygems