Method: Printful::FilesResource#retrieve

Defined in:
lib/printful/resources/files.rb

#retrieve(id:) ⇒ Object



4
5
6
7
# File 'lib/printful/resources/files.rb', line 4

def retrieve(id:)
  response = get_request("files/#{id}")
  File.new(response.body["result"])
end