Creates a new instance of a nextcloud client.
Use the server to provide server connectivity information to the client.
(The FakeServer is only used for testing and code coverage)
If the server is not provided the client tries to find the connectivity information
in the environment.
If a VCAP_SERVICES environment variable is available, the client tries to find
a service with the name "nextcloud" in the user-provides-services section.
If no VCAP_SERVICES are available, the client uses the following variables
from the envirnonment for the connectivity:
optional server information to connection to a nextcloud server
adds a comment to a file
the id of the file
the comment to be added to the file
adds a tag to a file or folder if the tag does not exist, it is automatically created if the tag is created, the user must have damin privileges
the id of the file
the name of the tag
nothing
adds a user to a group as member
string the user id
string the user group id
create a new file of overwrites an existing file
the file name /folder1/folder2/filename.txt
the buffer object
creates a folder and all parent folders in the path if they do not exist
name of the folder /folder/subfolder/subfolder
a folder object
create a new share
creates a new tag, if not already existing this function will fail with http 403 if the user does not have admin privileges
the name of the tag
tagId
creates a new user with email or password
User
create a new user group
user group id
deletes all visible assignable tags
deletes a file
name of folder "/f1/f2/f3/x.txt"
deletes a folder
name of folder "/f1/f2/f3"
get share information
deletes the tag by id this function will fail with http 403 if the user does not have admin privileges
the id of the tag like "/remote.php/dav/systemtags/234"
deletes the user
string the user id
deletes an existing user group
string
Removes the subadmin rights for the user specified from the group specified
string the user id
string the user group id
disables the user
string the user id
enables the user
string the user id
returns apps
returns the content of a file
name of the file /d1/file1.txt
Buffer with file content
returns a nextcloud file object
the full file name /folder1/folder2/file.pdf
returns comments of a file / folder
the id of the file / folder
number of comments to return
the offset
array of comment strings
returns the id of the file or -1 of not found
id of the file or -1 if not found
returns an array of file system objects that have all given tags assigned (AND)
array of tags
returns an array of file system objects
get files of a folder
Name of the folder like "/company/branches/germany"
options for filtering and paging
array of file objects
get a folder object from a path string
Name of the folder like "/company/branches/germany"
null if the folder does not exist or an folder object
returns the link to a file for downloading
name of the file /folder1/folder1.txt
url
array of notification objects
returns the used and free quota of the nextcloud account
get the root folder object
the root folder
get share information
get a array of folders from a folder path string
Name of the folder like "/company/branches/germany"
array of folder objects
returns system information about the nextcloud server and the nextcloud client
returns a tag identified by the id or null if not found
the id of the tag
tag or null
returns a tag identified by the name or null if not found
the name of the tag
tag or null
returns a list of tags
array of tags
returns the list of tag names and the tag ids
the id of the file
returns the url to the file in the nextcloud UI
the id of the file
returns a user or null if not found
string
User | null
returns user data
string the user id
Promise
get user group
string
Promise<UserGroup|null>
returns a list of user groups
string
number
number
list of user groups
returns a list of user ids that are members of the user group
string
list of member user ids
returns a list of user ids that are subadmins of the user group
string
list of subadmin user ids
returns a list of user groups
string
number
number
list of user groups
string
number
number
renames the file or moves it to an other location
source file name
target file name
renames the folder or moves it to an other location
source folder name
target folder name
returns the content of a file
name of the file /d1/file1.txt
Buffer with file content
promotes a user to a user group subadmin
string the user id
string the user group id
removes the tag from the file
the file id
the tag id
removes a user from a group as member
string the user id
string the user group id
resend the welcome email
user id
update a new share
updates a user property
user id
property name
property value
insert or update complete user data
IUpsertUserOptions[]
Promise<IUpsertUserReport[]
Generated using TypeDoc
The nextcloud client is the root object to access the remote api of the nextcloud server.