Package dev.dosya.sdk.resource
Class SharesResource
java.lang.Object
dev.dosya.sdk.resource.SharesResource
Provides operations for managing share links in Dosya workspaces.
This resource handles listing active share links and revoking them.
- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionSharesResource(@NotNull DosyaHttpClient http) Creates a newSharesResourcebacked by the given HTTP client. -
Method Summary
Modifier and TypeMethodDescription@NotNull SharesListResponseLists all share links in a workspace along with summary statistics.voidRevokes an active share link, making it inaccessible.
-
Constructor Details
-
SharesResource
Creates a newSharesResourcebacked by the given HTTP client.- Parameters:
http- the HTTP client used to make API requests
-
-
Method Details
-
list
Lists all share links in a workspace along with summary statistics.- Parameters:
workspaceId- the workspace whose share links to list- Returns:
- the response containing share links and stats
- Throws:
DosyaApiException- if the API returns an error
-
revoke
Revokes an active share link, making it inaccessible.- Parameters:
linkId- the unique identifier of the share link to revoke- Throws:
DosyaApiException- if the API returns an error
-