Sha256: d8b3eb3a871310a2f8fea4c1cce12a2a9e0b965d6fac36dfa179064646d31448

Contents?: true

Size: 1.1 KB

Versions: 6

Compression:

Stored size: 1.1 KB

Contents

module DropboxApi::Endpoints::Sharing
  class ListSharedLinks < DropboxApi::Endpoints::Rpc
    Method      = :post
    Path        = "/2/sharing/list_shared_links".freeze
    ResultType  = DropboxApi::Results::ListSharedLinksResult
    ErrorType   = DropboxApi::Errors::ListSharedLinksError

    include DropboxApi::Endpoints::OptionsValidator

    # List shared links of this user.
    #
    # If no path is given or the path is empty, returns a list of all shared
    # links for the current user.
    #
    # If a non-empty path is given, returns a list of all shared links that
    # allow access to the given path - direct links to the given path and
    # links to parent folders of the given path. Links to parent folders can
    # be suppressed by setting direct_only to true.
    #
    # @option path [String]
    # @option cursor [String] The cursor returned by your last call.
    # @option direct_only [Boolean]
    # @return [ListSharedLinksResult]
    add_endpoint :list_shared_links do |options = {}|
      validate_options([:path, :cursor, :direct_only], options)

      perform_request options
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dropbox_api-0.1.10 lib/dropbox_api/endpoints/sharing/list_shared_links.rb
dropbox_api-0.1.9 lib/dropbox_api/endpoints/sharing/list_shared_links.rb
dropbox_api-0.1.8 lib/dropbox_api/endpoints/sharing/list_shared_links.rb
dropbox_api-0.1.7 lib/dropbox_api/endpoints/sharing/list_shared_links.rb
dropbox_api-0.1.6 lib/dropbox_api/endpoints/sharing/list_shared_links.rb
dropbox_api-0.1.5 lib/dropbox_api/endpoints/sharing/list_shared_links.rb