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.
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 |