getShares method
Get shares of the current user.
Returns a Future containing a DynamiteResponse
with the status code, deserialized body and headers.
Throws a DynamiteApiException
if the API call does not return an expected status code.
Parameters:
sharedWithMe
Only get shares with the current user. Defaults tofalse
.reshares
Only get shares by the current user and reshares. Defaults tofalse
.subfiles
Only get all shares in a folder. Defaults tofalse
.path
Get shares for a specific path. Defaults to''
.includeTags
Include tags in the share. Defaults tofalse
.oCSAPIRequest
Required to be true for the API request to pass. Defaults totrue
.
Status codes:
- 200: Shares returned
- 404: The folder was not found or is inaccessible
See:
- getSharesRaw for an experimental operation that returns a
DynamiteRawResponse
that can be serialized.
Implementation
Future<_i1.DynamiteResponse<ShareapiGetSharesResponseApplicationJson, void>> getShares({
String? sharedWithMe,
String? reshares,
String? subfiles,
String? path,
String? includeTags,
bool? oCSAPIRequest,
}) async {
final rawResponse = getSharesRaw(
sharedWithMe: sharedWithMe,
reshares: reshares,
subfiles: subfiles,
path: path,
includeTags: includeTags,
oCSAPIRequest: oCSAPIRequest,
);
return rawResponse.future;
}