Sha256: 11804c42640b871092e3a7f7e759ecf120c4ef28656d56bcc1a6742815ff2349
Contents?: true
Size: 703 Bytes
Versions: 2
Compression:
Stored size: 703 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/read', body: params) end def move(params = {}) patch('/api/v1/conversations/move', body: params) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
postman_mta-0.1.2 | app/models/postman_mta/conversation.rb |
postman_mta-0.1.1 | app/models/postman_mta/conversation.rb |