getPublicSharedLink

abstract suspend fun getPublicSharedLink(sharedLinkId: String, password: String? = null): PublicShareSchema

Authorizes in the sharedLinkId and gets its content. If the link is password-protected, then uses a password for authorization.

Throws

Invalid password format if password needed.

PasswordRequiredException

Requires a password to authorize in a shared link.

SharedLinkExpiredException

Shared link expired.

Wrong password for shared link.

Invalid configuration from backend.

NotInTheCollaboratorListException

The account owner is not in the list of collaborators for the shared link.