TeamDriveApi
|
__init__(self,
server=' [::1]:45454 ' )
Creates a new instance of the API. |
|
|
list[int]
|
getSpaceIds(self)
Returns a list of all known Spaces Ids. |
|
|
dict
|
getSpace(self,
spaceId)
Will return information about that Space. |
|
|
dict
|
createSpace(self,
spaceName,
disableFileSystem)
Creates a new Space. |
|
|
dict
|
deleteSpace(self,
spaceId,
delInFs,
delOnServer)
Deletes a Space. |
|
|
dict
|
joinSpace(self,
spaceId,
disableFileSystem,
spacePath=None)
Joins an archived Space or rejoins an existing. |
|
|
dict
|
inviteMember(self,
spaceId,
addressId,
text)
Invites a user into a Space. |
|
|
dict
|
quit(self,
logout)
Quits TeamDrive. |
|
|
dict
|
|
dict
|
about(self)
Returns information about the application. |
|
|
dict
|
login(self,
username,
password)
Will login a user with a given password. |
|
|
dict
|
getFile(self,
fileId)
Returns information about the given File Id |
|
|
list[dict]
|
getFiles(self,
spaceId,
filePath,
trashed)
Returns a list of files matching the Space Id, the file path and the
trashed flag. |
|
|
list[int]
|
getFolderContent(self,
spaceId,
filePath,
trashed)
Returns a list of file Ids in the Space in a folder. |
|
|
dict
|
putFile(self,
spaceId,
path,
data)
Uploads a file into a Space. |
|
|
dict
|
moveFile(self,
spaceId,
filePath,
trashed,
newFilePath)
Moves a file from filePath to newFilePath in the given Space. |
|
|
list[int]
|
|
dict
|
getAddressbook(self,
addressId)
Returns information about a given Addressbook Id. |
|
|