SharesClient class

SharesClient class


SharesClient(String baseUrl, String username, String password)


hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


deleteShare(int id) Future
Get a share by id
getShare(int id) Future<Share>
Get a share by id
getShares({String path, bool reshares: false, bool subfiles: false}) Future<List<Share>>
Get a list of shares. [...]
shareWithGroup(String path, String group, {Permissions permissions, bool publicUpload}) Future<Share>
Shares a path (dir/file) with a group
Shares a path (dir/file) with a url. This url can be found in the returned Share.url
shareWithUser(String path, String user, {Permissions permissions, bool publicUpload}) Future<Share>
Shares a path (dir/file) with a user
updateShareExpireDate(int id, DateTime expireDate) Future<Share>
Updates the expire date of a share
updateShareNote(int id, String note) Future<Share>
Updates the note of a share
updateSharePassword(int id, String password) Future<Share>
Updates the password of a share
updateSharePermissions(int id, Permissions permissions) Future<Share>
Updates the permissions of a share
updateSharePublicUpload(int id, bool publicUpload) Future<Share>
Updates the public upload option of a share
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
Returns a string representation of this object.


operator ==(dynamic other) bool
The equality operator. [...]