Sha256: 5b7b243ad4bd1f32c7b264c1fd2bd4b087190a1aca335753c1d1834908ab6f96

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 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::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

1 entries across 1 versions & 1 rubygems

Version Path
dropbox_api-0.1.11 lib/dropbox_api/endpoints/sharing/list_shared_links.rb