Method: Dropbox::Client#get_thumbnail

Defined in:
lib/dropbox/client.rb

#get_thumbnail(path, format = 'jpeg', size = 'w64h64') ⇒ Dropbox::FileMetadata, HTTP::Response::Body

Get a thumbnail for an image.

Parameters:

  • path (String)
  • format (String) (defaults to: 'jpeg')
  • size (String) (defaults to: 'w64h64')

Returns:



127
128
129
130
# File 'lib/dropbox/client.rb', line 127

def get_thumbnail(path, format='jpeg', size='w64h64')
  resp, body = content_request('/files/get_thumbnail', path: path, format: format, size: size)
  return parse_tagged_response(resp, 'file'), body
end