Class DbxAppFilesRequests


  • public class DbxAppFilesRequests
    extends java.lang.Object
    Routes in namespace "files".
    • Constructor Detail

      • DbxAppFilesRequests

        public DbxAppFilesRequests​(DbxRawClientV2 client)
    • Method Detail

      • getThumbnailV2

        public DbxDownloader<PreviewResult> getThumbnailV2​(PathOrLink resource)
                                                    throws ThumbnailV2ErrorException,
                                                           DbxException
        Get a thumbnail for a file.

        The default values for the optional request parameters will be used. See DbxAppGetThumbnailV2Builder for more details.

        Parameters:
        resource - Information specifying which file to preview. This could be a path to a file, a shared link pointing to a file, or a shared link pointing to a folder, with a relative path. Must not be null.
        Returns:
        Downloader used to download the response body and view the server response.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
        ThumbnailV2ErrorException
        DbxException
      • getThumbnailV2Builder

        public DbxAppGetThumbnailV2Builder getThumbnailV2Builder​(PathOrLink resource)
        Get a thumbnail for a file.
        Parameters:
        resource - Information specifying which file to preview. This could be a path to a file, a shared link pointing to a file, or a shared link pointing to a folder, with a relative path. Must not be null.
        Returns:
        Downloader builder for configuring the request parameters and instantiating a downloader.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.