Sha256: 3dbec83a942fbfa19799a63d9ae165da7c20c2f9614d9366e5472e3fd1c0cfbb
Contents?: true
Size: 1.06 KB
Versions: 5
Compression:
Stored size: 1.06 KB
Contents
module DropboxApi::Endpoints::Files class GetMetadata < DropboxApi::Endpoints::Rpc Method = :post Path = "/2/files/get_metadata".freeze ResultType = DropboxApi::Metadata::Resource ErrorType = DropboxApi::Errors::GetMetadataError include DropboxApi::Endpoints::OptionsValidator # Returns the metadata for a file or folder. # # Note: Metadata for the root folder is unsupported. # # @param path [String] The path of a file or folder on Dropbox. # @option include_media_info [Boolean] If `true`, FileMetadata.media_info # is set for photo and video. The default for this field is `false`. # @option include_deleted [Boolean] If `true`, DeletedMetadata will be # returned for deleted file or folder, otherwise LookupError.not_found # will be returned. The default for this field is False. add_endpoint :get_metadata do |path, options = {}| validate_options([:include_media_info, :include_deleted], options) perform_request(options.merge({ :path => path })) end end end
Version data entries
5 entries across 5 versions & 1 rubygems