Sha256: 71d4fd343c5810ca813969978399995884a200cebb1803abfdd4f8796f1c82cb
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 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. # # If you request the `media_info` attribute, note that it could be set to # `:pending` or `nil`. # # @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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dropbox_api-0.1.10 | lib/dropbox_api/endpoints/files/get_metadata.rb |