Class: XingApi::Conversation::Attachment

Inherits:
Base
  • Object
show all
Defined in:
lib/xing_api/conversation/attachment.rb

Class Method Summary collapse

Methods inherited from Base

request, request_with_body

Class Method Details

.download_url(conversation_id, attachment_id, options = {}) ⇒ Object



8
9
10
# File 'lib/xing_api/conversation/attachment.rb', line 8

def self.download_url(conversation_id, attachment_id, options = {})
  request(:post, "/v1/users/me/conversations/#{conversation_id}/attachments/#{attachment_id}/download", options)
end

.list(conversation_id, options = {}) ⇒ Object



4
5
6
# File 'lib/xing_api/conversation/attachment.rb', line 4

def self.list(conversation_id, options = {})
  request(:get, "/v1/users/me/conversations/#{conversation_id}/attachments", options)
end