Class: DropboxApi::Endpoints::Files::GetMetadata
- Includes:
- OptionsValidator
- Defined in:
- lib/dropbox_api/endpoints/files/get_metadata.rb
Constant Summary collapse
- Method =
:post
- Path =
"/2/files/get_metadata".freeze
- ResultType =
DropboxApi::Metadata::Resource
- ErrorType =
DropboxApi::Errors::GetMetadataError
Instance Method Summary collapse
-
#get_metadata(path, options = {}) ⇒ Object
Returns the metadata for a file or folder.
Methods included from OptionsValidator
Methods inherited from Rpc
Methods inherited from Base
Constructor Details
This class inherits a constructor from DropboxApi::Endpoints::Rpc
Instance Method Details
#get_metadata(path, options = {}) ⇒ Object
Returns the metadata for a file or folder.
Note: Metadata for the root folder is unsupported.
If you request the media_info
attribute, note that it could be set to
:pending
or nil
.
23 24 25 26 27 28 29 |
# File 'lib/dropbox_api/endpoints/files/get_metadata.rb', line 23 add_endpoint :get_metadata do |path, = {}| ([:include_media_info, :include_deleted], ) perform_request(.merge({ :path => path })) end |