Please note that this service will close down on 30th June. Please refer to the email that you should have received and the FAQ for further information
Sign in US Server —
Switch to EU Server
The EU & US servers are separate for data legislation reasons and you need a registered account for the relevant server to use it.
API Test Harness
Login functions
gettoken- Get token for operations. We suggest to use POST for this function, this will hide user login and password. It supports also special auth values: if us_login is `TEMPAUTHTOKEN` then us_pwd can be a token generated by the API function getTempAPILoginToken
GET
Token for this function is *
Get token for operations.
In this function the token must have the value “*”.
Success response parameters:
token - contains the token.
Also this function returns data about last user login.
Lastlogin – date of last login; autologincode – this is code that can be used to save files from external editor for temporary user authentication. See details in description of Using external editors.
Params
Response:
logOut- Complete the API session. This function destroys the API token. It is optional. If a token is not used then it will be autodestroyed in 1 hour after last call.
GET
Complete the API session. This function destroys the API token. It is optional. If a token is not used then it will be autodestroyed in 1 hour after last call.
Params
Response:
getTempAuthToken- Get temporary authentication token.
GET
Token for this function is *
Get temporary authentication token.
In this function the token must have the value “*”.
This function is used to get temporary authentication token (valid for 1 hour) which may be changed to permanent token which is valid for 1 year and may be used to get token.
Success response parameters:
token - contains the temporary authentication token
type - always “temporary”
endon - life time timestamp
authurl - the url where user must be redirected in browser in order to login and authorize authentication token.
Authentication token applications use flow:
Application is using getTempAuthToken API function to get temporary authentication token and authurl.
Application is opening browser with authurl URL (authurl URL must contain Nasuni Access Anywhere Server user login).
Application is using getAuthTokenStatus API function to get status of temporary authentication token [function will return permanent authentication token once it will be available] in loop with some delay after every use.
Application is getting permanent (valid for 1 year) authentication token as getAuthTokenStatus API function response and after thismay use getTokenByAuthToken API function to get token.
Params
Response:
getAuthTokenStatus- Get temporary authentication token status.
GET
Token for this function is *
Get temporary authentication token status.
In this function the token must have the value “*”.
This function is used to get permanent authentication token (valid for 1 year) by temporary authentication token (valid for 1 hour) once user will authorize temporary authentication token.
Success response parameters:
ready - is permanent token ready or no: “y” or “n”
token - authentication token [this field will contain new permanent token in case if user already authorized temporary authentication token]
type - type of returned token
endon - returned token life time timestamp
Authentication token applications use flow:
Application is using getTempAuthToken API function to get temporary authentication token and authurl.
Application is opening browser with authurl URL (authurl URL must contain Nasuni Access Anywhere Server user login).
Application is using getAuthTokenStatus API function to get status of temporary authentication token [function will return permanent authentication token once it will be available] in loop with some delay after every use.
Application is getting permanent (valid for 1 year) authentication token as getAuthTokenStatus API function response and after thismay use getTokenByAuthToken API function to get token.
Params
Response:
getTokenByAuthToken- Get token by permanent authentication token.
GET
Token for this function is *
Get token for operations by permanent (valid for 1 year) authentication token.
In this function the token must have the value “*”.
Success response parameters:
token - contains the token.
Also this function returns data about last user login.
Lastlogin – date of last login; autologincode – this is code that can be used to save files from external editor for temporary user authentication. See details in description of Using external editors.
Params
Response:
getPermissions- Returns permissions for user.
GET
Returns permissions for user. This can determine whether the user can access different features.
Success response parameters:
The list of permissions.
Params
Response:
getRegistrationForm- Returns data used for the registration of new users.
GET
Token for this function is *
Returns data used for the registration of new users.
Success response parameters:
The function returns the structure needed for registration. These are the list of fields needed for registration, ordering of these fields, the list of packages for users and captcha information. The captcha information is a captcha image (base64 encoded) and captcha session id. Captcha session id must be used in calling of the function doRegistration to process registration.
Params
Response:
doRegistration- Process registration.
GET
Token for this function is *
Process registration. Function getRegistrationForm must be called before this function to get captcha session id.
Success response parameters:
The function returns nothing, Just ‘success’ or error description.
Params
Response:
doActivation- Process registration activation.
GET
Token for this function is *
Process registration activation. Activation code is obtained from the activation email.
Success response parameters:
The function returns a parameter, ‘completed’ , that indicates if the registration if fully completed. If ‘completed’ it is equal to 0 then the user must pay for package. In this case there also a parameter url that defines the url to redirect user for payment.
Params
Response:
doResendActivation- Process the resending of the activation email.
GET
Token for this function is *
Process the resending of the activation email. Also you can change the email for the user if the email was set wrong during registration. If 3-rd parameter is set (email) then email for user will be changed.
Success response parameters:
The function returns nothing. Just success or error description.
Params
Response:
setProviderData- Sets external cloud provider login info for the session if this info were not saved.
GET
Sets external cloud provider login info for the session if this info were not saved. This function is called after user logged in to the service. It is needed to call this function for each user's provider that has no login/password saved.
Success response parameters:
This function returns status (success or error description). Also it returns node 'notice'=1 if there are more providers in account that must be inited for the session.
Params
Response:
getUserInfo- Returns the current user information.
GET
Returns the current user information.
Success response parameters:
The function returns information about the user.
One of the information items is us_isorg. This indicates the Organization status of the user. If this item is 0 then this is a single user. If this value is 1 then this user is Team member. If this value is 2 then this user is Team admin.
Params
Response:
updateUsersData- Update user account data.
GET
This function is used to update user account data. Currently it is possible to update user name, phone and address.
Success response parameters:
Success or not.
Params
Response:
setNewUserPassword- Update a user's account password.
GET
This function is used to update a user's account password. You have to provide the current (old) user's password to set a new password.
Success response parameters:
Success or not.
Params
Response:
setNewUserEmail- Update a user's account email.
GET
This function is used to update a user's account email. This function must be called 2 times. First to send the email verification message, and the second call is confirming the email with a code. Also there is 3-rd mode of this function to check if there was set a new email for verification.
How it works: Call this function with step=3 and data=new user email. Email message will be send to this email with confirmation code in the body. Ask the user to copy that code and provide to application. Then call this function again with step=2 and data=confirmation code. Email will then be changed.
Success response parameters:
Status data
Params
Response:
setNewUserLogin- Change loginname (username) for existent user.
GET
The function is used to change loginname (username) for existent user. This function requires user's password to validate that login is changed by account owner.
Success response parameters:
Status data
Params
Response:
checkNewUserLogin- Check if login name exists.
GET
This function is used to check if login name exists. It can be used in registration form to check if username is available or it can be used when user wants to change his username.
Success response parameters:
Status data
Params
Response:
updateAccountOptions- Update user account options.
GET
This function is used to update user account options. You can get list of options that can be updated by calling getUserInfo function.
Success response parameters:
Params
Response:
getTempAPILoginToken- returns short living temporary token to start new API session with it. It can be used to auth some parallel process to work with API. The token can be exchanged for a normal API token with the API function getToken
GET
returns short living temporary token to start new API session with it. It can be used to auth some parallel process to work with API. The token can be exchanged for a normal API token with the API function getToken
Params
Response:
getPersonalInformation- Returns all Pii data for the user.
GET
Returns all Pii data for the user.
Params
Response:
getActiveSessions- Return list of active sessions and devices. Note that in se_id can be comma separated list of session IDs.
GET
Get list of active sessions and devices.
Success response parameters:
Return list of active sessions and devices.
Params
Response:
revokeSession- Revoke active session.
GET
Revoke active session.
Success response parameters:
Return success or not.
Params
Response:
Cloud File functions
getFilesList- Return all files and sub-folders in a given folder.
GET
Return all files and folders with all attributes. Also returns all tags.
Success response parameters:
XML structure with data of the database tables Files and Tags. Also includes filter data and some statistics (total amount of files/folders, amount of filtered files/folders).
Also there is node 'refreshresult' that contains response of function resyncFolder. This node can be used to get information about folder cache state.
Params
Response:
getFolderContents- Return all files and sub-folders in a given folder with all attributes.
GET
Return all files in a given folder with all attributes.
Success response parameters:
List of files.
Also there is node 'refreshresult' that contains response of function resyncFolder. This node can be used to get information about folder cache state.
Params
Response:
getListOfFiles- Return all files in a given folder with all attributes with chunks. Can be used to load big set of files with few steps.
GET
Return all files in a given folder with all attributes with chunks. Can be used to load big set of files with few steps.
Success response parameters:
List of files. Node 'truncated' says if list was truncated or not. If 'truncated' = 1 then list of files was truncated and it is needed to call this function again and value of first argument should be id or path of last file in list of received files.
Params
Response:
doMoveFiles- Move files to another folder.
GET
Move files to another folder.
Success response parameters:
Moved files info
Params
Response:
doRenameFile- Rename file and allow to change the description and tags
GET
Rename file or change attributes (description,tags)
Success response parameters:
Altered file info
Params
Response:
doModifyFile- Change file attributes. Any attributes , exclude fi_id and fi_uid can be changed
GET
Change file attributes. Any attributes , exclude fi_id and fi_uid can be changed.
Success response parameters:
Updated file info
Params
Response:
doDeleteFile- Delete file
GET
Delete file
Success response parameters:
Just status
Params
Response:
doUploadFiles- Upload files.
POST
Upload file.
This is the request that need arguments that are passed with the POST method.
Form action URL to upload the file is:
http://storagemadeeasy.com/api/1a3c5b2c5e64d5ecb56df380871594dc/doUploadFiles/ where 1a3c5b2c5e64d5ecb56df380871594dc is user
access token,
also this function can be used for upload to shared folders with uploading permissions for anonymous users.
You can use token '*' for anonymous users.
Success response parameters:
The function returns file info
Params
Response:
getFile- Download file.
GET
Response:
If file exists then the response is actually the file. If file doesn't exist then HTTP/1.1 404 Not Found response is returned.
Params
Response:
getFileFullInfo- Returns full info for the file. Including geo info.
GET
Returns full info for the file. Including geo info.
Params
Response:
getFilesInfo- Returns list of files. The list is specified with only one argument - comma separated list of ids.
GET
Returns list of files. The list is specified with only one argument – comma separated list of ids.
Success response parameters:
The function returns an array of files. Files objects are the same as when getting contents of a folder.
Params
Response:
checkPathExists- Check if file/folder path exists and returns file/folder id.
GET
Check if file/folder path exists and returns file/folder id.
Success response parameters:
The function returns file/folder ID if path exists. Also returns items that defines if path exists or not.
Params
Response:
doCheckEncryptionPhrase- Checks if the encryption phrase is correct for the file.
GET
Checks if the encryption phrase is correct for the file.
Success response parameters:
The function returns checkresult field in response. If checkresult is equal to:
0 - then encryption phrase is correct
1 - then encryptphrase input param is empty and you should fix this
2 - then encryption phrase is not correct
Params
Response:
doInitUpload- Prepare info for uploading of new files. This function receives file data and checks it.
GET
Prepare info for uploading of new files. This function receives file data and checks it.
This function can be used for upload to shared folders with uploading permissions for anonymous users.
You can use token '*' for anonymous users.
Success response parameters:
The function returns uploading code. This code is important and must be used in uploading form and in doCompleteUpload function.
Also the function returns the node 'resumeallowed'. It defines if user can resume uploading (when uploading fails or user paused).
Params
Response:
doInitMassUpload- Prepare info for uploading of new files. This function receives files data and checks it. We suggest to use POST for this function because data param can be long.
POST
Prepare info for uploading of new files. This function receives files data and checks it. We suggest to use POST for this function because data param can be long.
Params
Response:
doCompleteUpload- Complete files uploading procedure. This function does the final work on file uploading.
GET
Complete files uploading procedure. This function does the final work on file uploading.
Success response parameters:
The function returns uploads file data.
The node 'file' contains new file object
Versioning
If a file with such name existed in the upload destination, the 'versioning' proces will be done. Old file is renamed to timestamped name and it becomes a version of new uploaded file. New uploaded file will keep ID of previous version and old version will get new ID.
During upload with versioning the file has temporary name on a storage. After upload the old version is renamed and new file is renamed to final name. There can be failuers during this process. The property 'version_status' containes the status of the process:
- versioned - all went success;
- rename_fail - old version was timestamped success but just uploaded file can not be renamed to requested name. The result file will keep the timestamped name with the unique code added before the extension;
- conflict - previous version rename failed. It will keep previous name (same as requested for this upload) and new uploaded file will have the timestamped name or the name starting with CONFLICT-... (in case if rename of this file was success)
Params
Response:
doCompleteMassUpload- Complete files uploading procedure. This function does the final work on file uploading. We suggest to use POST for this function because data param can be long.
POST
Complete files uploading procedure. This function does the final work on file uploading. We suggest to use POST for this function because data param can be long.
Params
Response:
doAbortUpload- Abort files uploading procedure. This function should be used when user cancel upload.
GET
Abort files uploading procedure. This function should be used when user cancel upload.
Success response parameters:
The function returns uploadcode.
Params
Response:
getUploadStatus- Get uploading status while uploading is in progress.
GET
Get uploading status while uploading is in progress.
Success response parameters:
The function returns uploading status: percent of data, amount of bytes that has been uploaded, total file size and file name.
Params
Response:
getUploadStatusOnFail- Get uploading status when uploading failed (or stopped by user) and the user wants to continue.
GET
Get uploading status when uploading failed (or stopped by user) and the user wants to continue.
Success response parameters:
The function returns uploading status the same as function getUploadStatus. Also the function returns additional info. One of nodes is lastsavedbyte. This value can be used to resume the uploading (if resume allowed).
Params
Response:
doBackupFiles- Processese a file backup if a file's provider has a ackup provider assigned to it. If provider has no backup then nothing will happen. Backups are done automatically when a re-sync of the primary provider occurs.
GET
Processese a file backup if a file's provider has a ackup provider assigned to it. If provider has no backup then nothing will happen. Backups are done automatically when a re-sync of the primary provider occurs.
Success response parameters:
Returns just status.
Params
Response:
doSearchFiles- Searches files, even if the files are stored on different cloud providers.
GET
Searches files, even if the files are stored on different cloud providers.
Success response parameters:
The function returns the list of found files.
Params
Response:
getFilesByQuickFilter- This function returns the list of files with filter. It is sometimes need to show a group of files by type or share state ect.
GET
This function can be used to search files.
Success response parameters:
The function returns the list of found files.
Params
Response:
doSearchPublicFiles- Searches the public files of all StorageMadeEasy users i.e. files they have designated public which reside on underlying clouds.
GET
Searches the public files of all StorageMadeEasy users i.e. files they have designated public which reside on underlying clouds.
Success response parameters:
The function returns the list of found public files.
Params
Response:
getCustomSearchForms- Returns list of all available custom search forms used for content search. For each form contains list of extensions where it can work. And list of fields. Field types used in forms: longinterval - must be a string in format N-M (N- or -M also works). M,N are long integers. floatinterval - same as above but for float numbers dropdown - text value should be selected from a dropdown. List of possible values must be present too. If options contain allowcustom it means a user can enter also a custom string
GET
Returns list of all available custom search forms used for content search. For each form contains list of extensions where it can work. And list of fields. Field types used in forms: longinterval - must be a string in format N-M (N- or -M also works). M,N are long integers. floatinterval - same as above but for float numbers dropdown - text value should be selected from a dropdown. List of possible values must be present too. If options contain allowcustom it means a user can enter also a custom string
Params
Response:
getAvaliableFileTemplates- Get the list of available file templates. File templates are used for the creating of a new file. This function returns the list of all possible file types that can be created.
GET
Get the list of available file templates. File templates are used for the creating of a new file. This function returns the list of all possible file types that can be created.
Success response parameters:
The function returns the list of possible file types for creating a file.
Params
Response:
createNewEmptyFile- Creates empty file by given extension. This enables the creation of MS Office type files that can be then edited directly, and saved, from the browser using the Zoho integration.
GET
Creates empty file by given extension. This enables the creation of MS Office type files that can be then edited directly, and saved, from the browser using the Zoho integration.
Success response parameters:
New file record.
Params
Response:
doFavouriteFile- This Sets/unsets the favorite flag for files. You use this function to add file to favorites or remove a file from favorites.
GET
This Sets/unsets the favorite flag for files. You use this function to add file to favorites or remove a file from favorites.
Success response parameters:
Updated file(s) records.
Params
Response:
doFavouriteFolder- Makes folder favorite. This function is the same as doFavouriteFile but works for folders.
GET
Makes folder favorite. This function is the same as doFavouriteFile but works for folders.
Params
Response:
getMyFavouriteFiles- Returns a list of favorite files for a user.
GET
Returns a list of favorite files for a user.
Success response parameters:
The list of files records.
Params
Response:
doCopyFile- Copy file(s) from one folder to other. Response contains value `background`. If it is y then the operation will be done on background.
GET
Copy a file to another folder.
Success response parameters:
New created file
Params
Response:
doUploadFromWeb- This function download file with given url and then upload the file to StorageMadeEasy account.
GET
This function download file with given url and then upload the file to StorageMadeEasy account.
Success response parameters:
Just status. File will be loaded in background. So this function just return message that new background task is added.
Params
Response:
lockFile- The function locks file. It is not possible to edit the file while it is locked, but file can be downloaded.
GET
The function locks file. It is not possible to edit or download the file while it is locked.
Success response parameters:
Just status.
Params
Response:
unlockFile- The function unlocks the file.
GET
The function unlocks the file.
Success response parameters:
Just status.
Params
Response:
getLockedFiles- Returns the list of all locked files for user.
GET
Returns the list of all locked files for user.
Success response parameters:
List of files
Params
Response:
getFileVersions- Returns list of versions for file. Files can be versioned when upload to the same folder files with equal names. Older file will be renamed with timestamp.
GET
Returns list of versions for file. Files can be versioned when upload to the same folder files with equal names. Older file will be renamed with timestamp.
Success response parameters:
List of files that are versions of the file.
Params
Response:
getVersionedFiles- Returns list of files that have 1 or more versions.
GET
Returns list of files that have 1 or more versions.
Success response parameters:
List of files that have versions.
Params
Response:
deleteFileVersions- Deletes file versions. Can delete all versions or leave a specified count of files.
GET
Deletes file versions. Can delete all versions or leave a specified count of files.
Params
Response:
getFileInfo- Returns information for the file.
GET
Returns information for the file.
Success response parameters:
File information, including full path and direct url.
Params
Response:
makeFrontVersion- This function promotes given file version to be main version. This function works only for versioned files. It replaces version of file with the file.
GET
This function promotes given file version to be main version. This function works only for versioned files. It replaces version of file with the file.
Success response parameters:
Returns file record and “old” main file record
Params
Response:
requestFileApproval- Request a file for approval. It can be used when Approval functionality is enabled
GET
Request a file for approval. It can be used when Approval functionality is enabled
Params
Response:
approveFile- Approve a file if it was previously requested ror approval. It can be used when Approval functionality is enabled
GET
Approve a file if it was previously requested ror approval. It can be used when Approval functionality is enabled
Params
Response:
getApprovers- Returns list of team members who are `approvers`. These are members who have a role where option `Can approve files` is allowed
GET
Returns list of team members who are `approvers`. These are members who have a role where option `Can approve files` is allowed
Params
Response:
rejectFileApproval- Reject a file approval. Can be executed by an approver user and a file must be posted to approval before. It can be used when Approval functionality is enabled
GET
Reject a file approval. Can be executed by an approver user and a file must be posted to approval before. It can be used when Approval functionality is enabled
Params
Response:
cancelFileApproval- Cancel a file approval request. Can be executed by a user who requested approval of this file. It can be used when Approval functionality is enabled
GET
Cancel a file approval request. Can be executed by a user who requested approval of this file. It can be used when Approval functionality is enabled
Params
Response:
getRestoreInfo- Return information about recovery options for a file. It has a list of items. Every item has 2 values: version and backup. Version is a reference to a version of a file, backup is a backup fil info. Some items can have both values, other items can have one of two values. Also, each item includes a type of a file: primarybackup, version, versionintrash, extrabackup
GET
Return information about recovery options for a file. It has a list of items. Every item has 2 values: version and backup. Version is a reference to a version of a file, backup is a backup fil info. Some items can have both values, other items can have one of two values. Also, each item includes a type of a file: primarybackup, version, versionintrash, extrabackup
Params
Response:
doRestoreFile- Start a file recovery. Can recover a file from a version or from a backup.
GET
Start a file recovery. Can recover a file from a version or from a backup.
Params
Response:
doRestoreFolder- Start a folder recovery task. It creates acopy of a folder and each file is analised to chooose most correct version from all available.
GET
Start a folder recovery task. It creates acopy of a folder and each file is analised to chooose most correct version from all available.
Params
Response:
getFileTypeTools- Get available tools. May get file depending info.
GET
Get available tools. May get file depending info.
Params
Response:
Folder functions
doCreateNewFolder- Creates a folder within the StorageMadeEasy Cloud File System and also in the underlying cloud if the cloud provider supports this.
GET
Creates a folder within the StorageMadeEasy Cloud File System and also in the underlying cloud if the cloud provider supports this.
Success response parameters:
New folder info
Params
Response:
doRenameFolder- Renames a folder and allows you to change the description
GET
Renames a folder and allows you to change the description
Success response parameters:
Altered folder info
Params
Response:
doDeleteFolder- Deletes a folder from StorageMadeEasy Cloud file system and the underlying cloud provider if the cloud provider supports this functionality.
GET
Deletes a folder from StorageMadeEasy Cloud file system and the underlying cloud provider if the cloud provider supports this functionality.
Success response parameters:
Just status
Params
Response:
doMoveFolders- Move folder(s) to another folder.
GET
Move folder(s) to another folder.
Success response parameters:
Moved folders information.
Params
Response:
getFoldersList- Returns list of folders for account.
GET
Returns list of folders for account.
Success response parameters:
List of folders
Params
Response:
resyncFolder- This function synchronize folder contents against mapped folder on provider side. The function adds new found files on provider side to StorageMadeEasy cache and remove files from StorageMadeEasy that doesn't exists on provider anymore. This operation is also called "folder refresh".
GET
This function synchronize folder contents against mapped folder on provider side.
The function adds new found files on provider side to StorageMadeEasy cache and remove files
from StorageMadeEasy that doesn't exists on provider anymore. This operation is also called “folder refresh”.
Success response parameters:
Returns couple of values with results of refresh.
Cacheisactual – 'y' or 'n'. If 'y' then folder was not refreshed because folder's cache is in actual state (is fresh).
Addedtobackground – if 'y' then refresh task is added to list of tasks for async refresh. In this case value 'backgroundtaskid' is ID of background task.
Werechanges – if 'y' then something was changed during refresh
newfiles, updatedfiles, deletedfiles – lists of modifications.
Params
Response:
getFolderCacheStatus- The function returns time when the folder was cached and status of the cache for the folder (expired or not). Also this function can check if cache was updated since given time (optional)
GET
The function returns time when the folder was cached and status of the cache for the folder (expired or not). Also this function can check if cache was updated since given time (optional)
Success response parameters:
All comments for the file with new added comment.
Params
Response:
DownloadZippedFolder- The function returns zip (tar,tar.gz) file with all files from the folder and subfolders. If the feature is not available for user it will return standard error response
GET
The function returns zip (tar,tar.gz) file with all files from the folder and subfolders. If the feature is not available for user it will return standard error response
Params
Response:
DownloadArchive- The function returns zip (tar, tar.gz) file with all files and folders listed in a request. Folders are returned with all contents of a folder and subfolders. If the feature is not available for user it will return standard error response
GET
The function returns zip (tar, tar.gz) file with all files and folders listed in a request. Folders are returned with all contents of a folder and subfolders. If the feature is not available for user it will return standard error response
Params
Response:
setFolderQuota- This function set quota for the folder. When a quota is reached then user performing the action (upload, copy to the folder, etc.) is informed and person who set the quota is informed by email that the quota was reached.
GET
This function set quota for the folder. When a quota is reached then user performing the action (upload, copy to the folder, etc.) is informed and person who set the quota is informed by email that the quota was reached.
Only Team Admin can use this function.
Success response parameters:
Returns status.
Params
Response:
getFolderQuota- This function get quota of folder. When a quota is reached then user performing the action (upload, copy to the folder, etc.) is informed and person who set the quota is informed by email that the quota was reached.
GET
This function get quota of folder. When a quota is reached then user performing the action (upload, copy to the folder, etc.) is informed and person who set the quota is informed by email that the quota was reached.
Success response parameters:
Returns quota in bytes and info about user that set this quota: us_id, us_name. If folder doesn't have a quota then return success response without info about quota.
Params
Response:
checkFolderQuotaReached- Check if folder quota reached. When a quota is reached then user performing the action (upload, copy to the folder, etc.) is informed and person who set the quota is informed by email that the quota was reached. Only Team Admin can use this function.
GET
Check if folder quota reached. When a quota is reached then user performing the action (upload, copy to the folder, etc.) is informed and person who set the quota is informed by email that the quota was reached. Only Team Admin can use this function.
Params
Response:
removeFolderQuota- This function remove quota of folder. When a quota is reached then user performing the action (upload, copy to the folder, etc.) is informed and person who set the quota is informed by email that the quota was reached.
GET
This function remove quota of folder. When a quota is reached then user performing the action (upload, copy to the folder, etc.) is informed and person who set the quota is informed by email that the quota was reached.
Success response parameters:
Returns status.
Params
Response:
getFolderQuotas- Get list of all folders that has quotas
GET
Get list of all folders that has quotas.
Success response parameters:
Returns list of all folders that has quotas.
Params
Response:
getFolderTotalSize- Get total size of all files and subfolders. Return "foldertotalsize" or "taskid" on success. If folder total size unknown then will be created background task that will calculate it and "taskid" will be returned else the "foldertotalsize" will be returned with folder total size in bytes.
GET
Get total size of all files and subfolders.
Success response parameters:
Return "foldertotalsize" or "taskid" on success. If folder total size unknown then will be created background task that will calculate it and "taskid" will be returned else the "foldertotalsize" will be returned with folder total size in bytes.
Params
Response:
getFolderWatermarkStatus- The function to get folder watermarking for pdf status.
GET
The function to get folder watermarking for pdf status.
Params
Response:
setFolderWatermarkStatus- The function to set/unset folder watermarking for pdf status.
GET
The function to set/unset folder watermarking for pdf status.
Params
Response:
getNominatedForWatermarkingFolders- The function to get list of folder with watermarking for pdf (for preview or shared links).
GET
The function to get list of folder with watermarking for pdf (for preview or shared links).
Params
Response:
Commenting files
addComment- Add new comment for a file or a folder.
GET
Add comment for a file or folder.
Success response parameters:
A new comment record
Params
Response:
addFileComment- This is the aliace for the API addComment
GET
Add comment for a file or folder.
Success response parameters:
A new comment record
Params
Response:
updateComment- Update comment for a file or a folder.
GET
Update comment for file.
Success response parameters:
All comments for the file/
Params
Response:
updateFileComment- Aliace for the API updateComment
GET
Update comment for file.
Success response parameters:
All comments for the file/
Params
Response:
removeComment- Remove file or folder comment.
GET
Remove file comment.
Success response parameters:
Status.
Params
Response:
removeFileComment- Aliace for the API removeComment
GET
Remove file comment.
Success response parameters:
Status.
Params
Response:
getComments- Get comments for a file or a folder.
GET
Get comments for file.
Success response parameters:
The list of comments.
Params
Response:
getFileComments- The aliace for the API getComments
GET
Get comments for file.
Success response parameters:
The list of comments.
Params
Response:
getCommentedFiles- Check what files from specified list of files have any comments.
GET
Check what files from specified list of files have any comments.
Success response parameters:
The list of files or file IDs.
Params
Response:
getCommentAttachFolder- Returns a folder ID where a comment attachments can be uploaded.
GET
Returns a folder ID where a comment attachments can be uploaded.
Params
Response:
attachFileToComment- Attach a file to a comment as attachment. A file had to be uploaded to the folder returned with the funcion getCommentAttachFolder.
GET
Attach a file to a comment as attachment. A file had to be uploaded to the folder returned with the funcion getCommentAttachFolder.
Params
Response:
removeCommentAttachment- Removes a comment attachment.
GET
Removes a comment attachment.
Params
Response:
Cloud Group and Sharing functions
doSendEmail- Send email to a friend with the file download link.
GET
Send email to a friend with the file download link.
Params
Response:
getGroupsList- Return all groups that has the current user as the member or just selected group information.
GET
Return all groups that has the current user as the member or just selected group information.
Success response parameters:
XML structure with data of the database table Groups. Each group item contains substructure with the list of group members (user id and name)
Params
Response:
getGroups- Return all groups where the current user is the member .
GET
Return all groups where the current user is the member .
Params
Response:
getGroupUsers- Return list of members for a group.
GET
Return list of members for a group.
Params
Response:
getGroupInvitations- Return list of active invitations to a group.
GET
Return list of active invitations to a group.
Params
Response:
getAllShared- Returns the list of all shared files.
GET
Returns the list of all shared files. Returned data has three lists: files shared by current user, files shared for current user and folders shared for user (each folder record contains the list of files and subfolders )
Success response parameters:
XML structure with data of the database table Shared.
Params
Response:
getSharedByGroup- Returns the list of files shared for a specified group and user.
GET
Returns the list of files shared for a specified group and user.
Params
Response:
getFileURL- Generate direct link to file or folder. The link can be used to share the file or folder. If days and hours and minutes are 0 then the link time is unlimited.
GET
Generate direct link to file or folder. The link can be used to share the file or folder. If days and hours and minutes are 0 then the link time is unlimited.
Params
Response:
getFileURLList- Get list of all generated URLs to file or folder.
GET
Get list of all generated URLs to file or folder.
Params
Response:
getSharedURLList- Get list of all generated URLs of users.
GET
Get list of all generated URLs of users.
Params
Response:
getUserSharedURLList- Get list of all generated URLs forthe user.
GET
Get list of all generated URLs forthe user.
Params
Response:
updateFileURL- Update link to file info. If days and hours and minutes are 0 then the link time is unlimited.
GET
Update link to file info. If days and hours and minutes are 0 then the link time is unlimited.
Params
Response:
deleteFileURL- Delete link to file.
GET
Delete link to file.
Params
Response:
getSharedFolderContents- Return all files and sub-folders in a given shared folder with attributes.
GET
Return all files in a given folder with all attributes.
Success response parameters:
List of files.
Also there is node 'refreshresult' that contains response of function resyncFolder. This node can be used to get information about folder cache state.
Params
Response:
doCreateFolderInShared- Create folder inside shared drop folder.
GET
Create folder inside shared drop folder.
Params
Response:
getFileUrlAccessCode- Send file URL access code on email.
GET
Send file URL access code on email.
Params
Response:
getFileViewEditUrl- Get file edit or view url. You may use getFileTypeTools API call to find file related tools or available tools.
GET
Get file edit or view url. You may use getFileTypeTools API call to find file related tools or available tools.
Params
Response:
getSharedByUser- Returns all files shared by user for current user.
GET
Returns all files shared by user for current user.
Params
Response:
doCreateGroup- Create new group.
GET
Create new group.
Params
Response:
doRenameGroup- Update group info.
GET
Update group info.
Params
Response:
doDeleteGroup- Delete group. Only the group creator can delete it.
GET
Delete group. Only the group creator can delete it.
Params
Response:
doEditGroupUser- Edit group member permissions.
GET
Edit group member permissions.
Success response:
User permissions info.
Params
Response:
doInviteToGroup- Send email to a friend / colleague with the link to become a member of a business group.
GET
Send email to a friend / colleague with the link to become a member of a business group.
Success response:
Just status and invitation code.
Params
Response:
doRepeatInvitation- Repeat email to friend with link to become a member of a business group.
GET
Repeat email to friend with link to become a member of a business group.
Success response:
Invitation code. This code can be obtained from list of invitations returned by getGroupsList. This is gr_code
field value.
Params
Response:
doAcceptInvitation- Accept or refuse invitation to the business group.
GET
Accept or refuse invitation to the business group.
Params
Response:
doDeleteInvitation- Delete invitation.
GET
Delete invitation. Invitation can be deleted by:
1. User who created the invitation
2. Team admin of user who created invitation
3. User who have been invited
4. Team admin of user who have been invited
Params
Response:
doShareFileWithGroup- Share the file with the group or the user.
GET
Share the file with the group or the user. If user id is 0 then file are shared with all members of the group otherwise only with specified user. If count
of days is 0 or empty then sharing is unlimited in time. If the count is specified then this is the number of days
that the link will be active before expiring.
Success response:
Shared file record.
Params
Response:
doShareFolderWithGroup- Share the folder with the business group or the user.
GET
Share the folder with the business group or the user.
Success response parameters:
Shared folder record with all files and subfolders (if subfolders are shared).
Params
Response:
getFileSharingStatus- Get the list of groups and users that the file/folder is shared for.
GET
Get the list of groups and users that the file/folder is shared for.
Success response:
List of requested files and sharing status for each file (list of groups/users that the file is shared for)
Params
Response:
getSharingStatus- This is alias for function getFileSharingStatus.
GET
This is alias for function getFileSharingStatus.
Success response:
Returned data are the same as for getFileSharingStatus function but are structured with different
way. The list if not sorted by file id. This function returns just flat list of all sharings for specified files.
Params
Response:
doDeleteShared- Delete shared file from shared files list.
GET
Delete shared file from shared files list.
Params
Response:
doUnsubscribeGroup- Unsubscribe user from the business group.
GET
Unsubscribe user from the business group.
Params
Response:
doRequestFile- Request file from a business group user. The user receives an email in which he is requested to share a file with the business group.
GET
Request file from a business group user. The user receives an email in which he is requested to share a file with the business group.
Success response parameters:
The function returns nothing. Just success or no.
Params
Response:
doPublicFile- Set or unset a file as public. A public file can be viewed by anyone on the Internet.
GET
Set or unset a file as public. A public file can be viewed by anyone on the Internet.
Success response parameters:
The list of changed files
Params
Response:
getPublicFiles- Searches public files.
GET
Searches public files.
Success response parameters:
The list of files
Params
Response:
getAutoshareRules- Returns a list of autosharing rules. Auto-sharing rules are information about a file, folder, file extension or whole file-tree that outline what watches should be set.
GET
Returns a list of autosharing rules. Auto-sharing rules are information about a file, folder, file extension or whole file-tree that outline what watches should be set.
Success response parameters:
The list of rules
Params
Response:
doAddAutoShareRule- Add a new rule for autosharing.
GET
Add a new rule for autosharing.
Success response parameters:
New rule info.
Params
Response:
doDeleteAutoShareRule- Deletes autoshare rule. Auto-sharing rules are information about a file, folder, file extension or whole file-tree that outline what watches should be set.
GET
Deletes autoshare rule. Auto-sharing rules are information about a file, folder, file extension or whole file-tree that outline what watches should be set.
Success response parameters:
Just status
Params
Response:
Email backup functions
getEmailAccounts- Returns the list of all email accounts for a user.
GET
Returns the list of all email accounts for a user.
Success response parameters:
XML structure with data of the database table EmailAccounts.
Params
Response:
doCheckEmailAccountSettings- Check email account settings. This function is used to check if user entered valid IMAP data before adding a new email account.
GET
Check email account settings. This function is used to check if user entered valid IMAP data before adding a new email account.
Success response parameters:
Return item 'connected' indicates if connection were established. If is 0 then it was not established. In this case item 'errormessage' contains the error message.
Params
Response:
doCreateEmailAccount- Create a new email account
GET
Create a new email account
Success response parameters:
New account info
Params
Response:
doEditEmailAccount- Email account information
GET
Email account information
Success response parameters:
Updated account info
Params
Response:
doDeleteEmailAccount- Delete email account.
GET
Delete email account.
Success response parameters:
Deleted account info
Params
Response:
doBackupEmailBoxInBackground- Add email box backup task to background tasks. Status of the backup can be obtained with the background tasks functions.
GET
Add email box backup task to background tasks. Status of the backup can be obtained with the background tasks functions.
Success response parameters:
Just status.
Params
Response:
getEmailAccountFolders- Return IMAP folders for an email account. olders returned with this function are used when calling the function doBackupEmailBoxInBackground to define what IMAP folders will be backed up.
GET
Return IMAP folders for an email account. Folders returned with this function are used when calling the function doBackupEmailBoxInBackground to define what IMAP folders will be backed up.
Success response parameters:
The function returns the list of IMAP folders.
Params
Response:
Encryption functions
doCheckEncryptionPhrase- Checks if the encryption phrase is correct for the file.
GET
Checks if the encryption phrase is correct for the file.
Success response parameters:
The function returns checkresult field in response. If checkresult is equal to:
0 - then encryption phrase is correct
1 - then encryptphrase input param is empty and you should fix this
2 - then encryption phrase is not correct
Params
Response:
setFolderEncryptStatus- The function to set\unset folder files encryption.
GET
The function to set\unset folder files encryption.
Params
Response:
getFolderEncryptStatus- The function to get folder encryption status.
GET
The function to get folder encryption status.
Params
Response:
getNominatedForEncryptionFolders- The function to get list of folders nominated for encryption.
GET
The function to get list of folders nominated for encryption.
Params
Response:
Fax functions
doFaxDocuments- Fax documents. Note that an Interfax account is needed for Faxing.
GET
Fax documents. Note that an Interfax account is needed for Faxing.
Success response parameters:
The list of faxed files. Also the list of files where error occurred.
Params
Response:
getFaxesList- Get list of documents that are in temporary list prepared for faxing. Note an Interfax account is needed for faxing.
GET
Get list of documents that are in temporary list prepared for faxing. Note an Interfax account is needed for faxing.
Success response parameters:
The list of files ids.
Params
Response:
doAddToMyFaxes- Add (delete) document(s) to (from) temporary list of documents for faxing. Note an Interfax account is needed for faxing.
GET
Add (delete) document(s) to (from) temporary list of documents for faxing. Note an Interfax account is needed for faxing.
Success response parameters:
The list of files added/deleted to/from the list. Also the flag that indicates if there was deleting or adding.
Params
Response:
Filter functions
getFilesFilter- Returns filter if it was set by user
GET
Returns filter if it was set by user
Success response parameters:
The function returns filter info and node that is 1 if filter is set and 0 if no.
Params
Response:
doSetFilesFilter- Set/update files filter.
GET
Set/update files filter.
Success response parameters:
The function returns new filter info.
Params
Response:
doDeleteFilesFilter- Deletes files filter if it was set by user
GET
Deletes files filter if it was set by user
Success response parameters:
Nothing. Just status.
Params
Response:
doSuggestTags- Return list of tags that starts with specified string. Can be used for adding of new tags
GET
Return list of tags that starts with specified string. Can be used for adding of new tags
Success response parameters:
The function returns list of found tags.
Params
Response:
Trash functions
getFolderContentsFromTrash- Return files and sub-folders in a given folder with all attributes.
GET
Return files and sub-folders in a given folder with all attributes.
Success response parameters:
List of files.
Params
Response:
doDeleteFromTrash- Deletes specified files/folders from trash. If file ID is 0 then all trash content is deleted (emptying the trash)
GET
Deletes specified files/folders from trash. If files/folders are not specified then all trash content is deleted (clear trash)
Success response parameters:
The list of deleted files/folders
Params
Response:
doRestoreFromTrash- Restores specified files/folders from trash. If files/folders are not specified then all trash content is restored and trash cleared
GET
Restores specified files/folders from trash. If files/folders are not specified then all trash content is restored and trash cleared
Success response parameters:
The list of restored files/folders
Params
Response:
emptyTrashInBackground- Remove all files from Trash with background processing. If this function is called then a new background task is created.
GET
Remove all files from Trash with background processing. If this function is called then a new background task is created.
Success response parameters:
Just status
Params
Response:
Provider functions
getProviders- Returns the list of allowed cloud storage providers types for the users package. Also returns the list of already used provider accounts.
Provider types are S3, Mosso (RackSpace), Box.Net, FTP, Gmail, Email, WebDav, SkyDrive, MobileMe. This list can be extended in the future.
Some packages have only 1 provider type allowed. Some have more.
GET
Returns the list of allowed cloud storage providers types for the user’s package. Also returns the list of already used provider accounts.
Provider types are S3, Mosso (RackSpace), Box.Net, FTP, Gmail, Email, WebDav, SkyDrive, MobileMe. This list can be extended in the future.
Some packages have only 1 provider type allowed. Some have more.
Success response parameters:
Returns couple of lists.
allowed node is the list of allowed cloud storage providers types. pr_id is the is of provider type.
used node is the list of used providers (private and Team providers for team users). In this list pi_id is the id of provider.
usedprivate list of private providers (this is empty list for not Team accounts)
usedasbackups clist of backup providers in account
Also returns default provider id and max amount of provider to be used.
Params
Response:
getProvidersForOrgMember- This function can be called by Team Admin to return providers of Team member (private and Team providers).
GET
This function can be called by Team admin to return providers of Team member (private and Team providers).
Success response parameters:
The list of providers.
Params
Response:
doProviderSyncInBackground- Synchronise files in cloud provider account and StorageMadeEasy DB in background. This is alternative for function doProviderSync. Once doProviderSyncInBackground is called sync starts on background.
GET
Synchronise files in cloud provider account and StorageMadeEasy DB in background.
This is alternative for function doProviderSync. Once doProviderSyncInBackground is called sync starts on background.
Success response parameters:
Returns success or not.
Params
Response:
getResyncReports- Get reports about provider sync.
GET
Get reports about provider sync.
Params
Response:
getResyncReport- Get provider sync report log records.
GET
Get provider sync report log records.
Params
Response:
syncOnProviderEvent- Is called when single file must be synced with Nasuni Access Anywhere Server. This API should be used when new file appears on a cloud or is updated or deleted. And it is needed to notify Nasuni Access Anywhere Server about this file action. This API works also for folders.
GET
Is called when single file must be synced with Nasuni Access Anywhere Server. This API should be used when new file appears on a cloud or is updated or deleted. And it is needed to notify Nasuni Access Anywhere Server about this file action. This API works also for folders.
Params
Response:
checkProviderObjectState- Checks if a file/folder from a cloud exists in Nasuni Access Anywhere Server.
GET
Checks if a file/folder from a cloud exists in Nasuni Access Anywhere Server.
Params
Response:
doRemoveProvider- Removes provider from StorageMadeEasy. All files are removed from StorageMadeEasy DB. But files are not removed from their storage location and can be accessed without StorageMadeEasy.
GET
Removes provider from StorageMadeEasy. All files are removed from StorageMadeEasy DB. But files are not removed from their storage location and can be accessed without StorageMadeEasy.
Params
Response:
getAddProviderMetaFields- Returns the list of data fields that must be provided to create new provider of given type. Usually these are 2 fields - login and password. For some provider types it is needed to provider more fields (like for Email or FTP). This function returns list of fields, titles and descriptions. Also this function returns status of oAuth support and options of oAuth authentification if it is supported.
This function is called before the creation of a new provider.
GET
Returns the list of data fields that must be provided to create new provider of given type. Usually these are 2 fields - login and password. For some provider types it is needed to provider more fields (like for Email or FTP). This function returns list of fields, titles and descriptions. Also this function returns status of oAuth support and options of oAuth authentification if it is supported.
This function is called before the creation of a new provider.
Params
Response:
doAddProvider- Adds new provider. This iss called a few times (steps).
0 step - provide provider access data;
1 step - select buckets (only for S3, RackSpace,Google Storage, Windows Azure);
2 step - chose if to save provider info (only for packages where 1 provider allowed);
3 step - do final saving of provider.
NOTE: bucket means bucket in Amazon S3 and Google Storage service. I case of RackSpace bucket means container.
GET
Adds new provider. This iss called a few times (steps).
0 step – provide provider access data;
1 step – select buckets (only for S3, RackSpace,Google Storage, Windows Azure);
2 step – chose if to save provider info (only for packages where 1 provider allowed);
3 step – do final saving of provider.
NOTE: bucket means bucket in Amazon S3 and Google Storage service. I case of RackSpace bucket means container.
Success response parameters:
For all steps function returns next step number (whatnextcode item). And next step description.
Another returned data are related to step.
For step 0:
Success or not. If provider type is S3 or Mosso then also buckets list will be returned. It is used for step 1.
For step 1 and 2:
Just success or not.
For step 3:
Created provider info.
Params
Response:
doQuickAddProvider- This function is similar to doAddProvider but is executed only 1 time to add a provider faster.
If this function is used for a provider that uses buckets/containers (ex. Amazon S3 or RackSpace) then it is needed to post the buckets list as argument for this function.
Before calling this function it is needed to call function getBucketsByAccessData to get list of all buckets for a provider.
To know if provider uses buckets analyse response of the function getAddProviderMetaFields. This function is used to get the list of auth fields for provider. Also it returns value usesbuckets . If this value is 'y' then provider uses buckets.
GET
This function is similar to doAddProvider but is executed only 1 time to add a provider faster.
If this function is used for a provider that uses buckets/containers (ex. Amazon S3 or RackSpace) then it is needed to post the buckets list as argument for this function.
Before calling this function it is needed to call function getBucketsByAccessData to get list of all buckets for a provider.
To know if provider uses buckets analyse response of the function getAddProviderMetaFields. This function is used to get the list of auth fields for provider. Also it returns value usesbuckets. If this value is 'y' then provider uses buckets.
Success response parameters:
Created provider info.
NOTE: bucket means bucket in Amazon S3 service. In the case of RackSpace bucket means container.
Params
Response:
getBucketsByAccessData- This function is used to get list of buckets (containers) for provider account before add new provider with function doQuickAddProvider . This function is called for providers of type 2 (Amazon S3, RackSpace Cloud, Google Storage, Windows Azure Blob).
GET
This function is used to get list of buckets (containers) for provider account before add new provider with function doQuickAddProvider . This function is called for providers of type 2 (Amazon S3, RackSpace Cloud, Google Storage, Windows Azure Blob).
Success response parameters:
returns list of existent buckets (containers)
Params
Response:
doSetDefaultProvider- Set provider to be the default
GET
Set provider to be the default
Success response parameters:
Default provider id
Params
Response:
doSetMasterCopy- Set or unset provider as the golden copy of data that will be used for sync with a provider.
GET
Set or unset provider as the golden ‘copy’ of data that will be used for sync with a provider.
Success response parameters:
Provider id and boolean value if provider is master
Params
Response:
getProviderBuckets- List provider buckets. This is used only for S3 or Mosso (RackSpace). For Mosso (RackSpace) bucket means container.
GET
List provider buckets. This is used only for S3 or Mosso (RackSpace). For Mosso (RackSpace) bucket means container.
Success response parameters:
Fucntion returns the list of all provider buckets with mark (‘y’ or ‘n’)
that defines if this bucket is used in StorageMadeEasy. Also default bucket is returned.
Default bucket is not included in list of buckets.
Params
Response:
doUpdateBucketsList- Updates the list of buckets that is used in the StorageMadeEasy. This is used only for S3 or Mosso (RackSpace). For Mosso (RacksSpace) bucket means container.
GET
Updates the list of buckets that is used in the StorageMadeEasy.
This is used only for S3 or Mosso (RackSpace). For Mosso (RacksSpace) bucket means container.
Function returns the list of provider buckets that are used in StorageMadeEasy. Default bucket is not included in this list.
Params
Response:
doSetDefaultBucket- Sets default bucket. Default bucket is used when it is not specified where to upload file.
This is used only for S3 or Mosso (RackSpace). For Mosso (RackSpace) bucket means container.
GET
Sets default bucket. Default bucket is used when it is not specified where to upload file.
This is used only for S3 or Mosso (RackSpace). For Mosso (RackSpace) bucket means container.
Success response parameters:
Default bucket and provider id
Params
Response:
doAddBucket- Adds new bucket. Bucket is created in S3 (or container in Mosso). And just created bucket is added to the list of used buckets.
This is used only for S3 or Mosso. For Mosso bucket means container.
GET
Adds new bucket. Bucket is created in S3 (or container in Mosso). And just created bucket is added to the list of used buckets.
This is used only for S3 or Mosso. For Mosso bucket means container.
Success response parameters:
Status. Error can appear if this bucket already exists.
Params
Response:
doChangeProviderPassword- Changes provider account password that is saved in StorageMadeEasy. This function is used when account password was changed on cloud storage. Example, Gmail account password was changed. And it is needed to change it in StorageMadeEasy to continue working with the Gmail provider.
Password can be API key. It is related to provider.
GET
Changes provider account password that is saved in StorageMadeEasy. This function is used when account password was changed on cloud storage. Example, Gmail account password was changed. And it is needed to change it in StorageMadeEasy to continue working with the Gmail provider.
Password can be API key. It is related to provider.
Success response parameters:
Status. Error can appear if password is incorrect.