lib/chatrix/api/media.rb
def download(server, id)
        make_request(
          :get,
          "/download/#{server}/#{id}",
          headers: { 'Accept' => '*/*' },
          base: @media_uri
        )
      end
# Download media from the server.
# @param server [String] The server component of an `mxc://` URL.
# @param id [String] The media ID of the `mxc://` URL (the path).
# @return [HTTParty::Response] The HTTParty response object for the
#   request. Use the response object to inspect the returned data.
Download media from the server.
Download media from the server .
def download(server, id)
        make_request(
          :get,
          "/download/#{server}/#{id}",
          headers: { 'Accept' => '*/*' },
          base: @media_uri
        )
      end
def download ( server , id ) make_request ( :get , "/download/#{server}/#{id}" , headers : { 'Accept' => '*/*' } , base : @media_uri ) end
Download media from the server.
Download media from the server .
The HTTParty response object for the request. Use the response object to inspect the returned data.
The HTTParty response object for the request . Use the response object to inspect the returned data .
HTTParty::Response
server
The server component of an `mxc://` URL.
The server component of an ` mxc : // ` URL .
id
The media ID of the `mxc://` URL (the path).
The media ID of the ` mxc : // ` URL ( the path ) .