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
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
getTempAuthToken - Get temporary authentication token.
GET
getAuthTokenStatus - Get temporary authentication token status.
GET
getTokenByAuthToken - Get token by permanent authentication token.
GET
getPermissions - Returns permissions for user.
GET
getRegistrationForm - Returns data used for the registration of new users.
GET
doRegistration - Process registration.
GET
doActivation - Process registration activation.
GET
doResendActivation - Process the resending of the activation email.
GET
setProviderData - Sets external cloud provider login info for the session if this info were not saved.
GET
getUserInfo - Returns the current user information.
GET
updateUsersData - Update user account data.
GET
setNewUserPassword - Update a user's account password.
GET
setNewUserEmail - Update a user's account email.
GET
setNewUserLogin - Change loginname (username) for existent user.
GET
checkNewUserLogin - Check if login name exists.
GET
updateAccountOptions - Update user account options.
GET
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
getPersonalInformation - Returns all Pii data for the user.
GET
getActiveSessions - Return list of active sessions and devices. Note that in se_id can be comma separated list of session IDs.
GET
revokeSession - Revoke active session.
GET

Cloud File functions

getFilesList - Return all files and sub-folders in a given folder.
GET
getFolderContents - Return all files and sub-folders in a given folder with all attributes.
GET
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
doMoveFiles - Move files to another folder.
GET
doRenameFile - Rename file and allow to change the description and tags
GET
doModifyFile - Change file attributes. Any attributes , exclude fi_id and fi_uid can be changed
GET
doDeleteFile - Delete file
GET
doUploadFiles - Upload files.
POST
getFile - Download file.
GET
getFileFullInfo - Returns full info for the file. Including geo info.
GET
getFilesInfo - Returns list of files. The list is specified with only one argument - comma separated list of ids.
GET
checkPathExists - Check if file/folder path exists and returns file/folder id.
GET
doCheckEncryptionPhrase - Checks if the encryption phrase is correct for the file.
GET
doInitUpload - Prepare info for uploading of new files. This function receives file data and checks it.
GET
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
doCompleteUpload - Complete files uploading procedure. This function does the final work on file uploading.
GET
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
doAbortUpload - Abort files uploading procedure. This function should be used when user cancel upload.
GET
getUploadStatus - Get uploading status while uploading is in progress.
GET
getUploadStatusOnFail - Get uploading status when uploading failed (or stopped by user) and the user wants to continue.
GET
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
doSearchFiles - Searches files, even if the files are stored on different cloud providers.
GET
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
doSearchPublicFiles - Searches the public files of all StorageMadeEasy users i.e. files they have designated public which reside on underlying clouds.
GET
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
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
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
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
doFavouriteFolder - Makes folder favorite. This function is the same as doFavouriteFile but works for folders.
GET
getMyFavouriteFiles - Returns a list of favorite files for a user.
GET
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
doUploadFromWeb - This function download file with given url and then upload the file to StorageMadeEasy account.
GET
lockFile - The function locks file. It is not possible to edit the file while it is locked, but file can be downloaded.
GET
unlockFile - The function unlocks the file.
GET
getLockedFiles - Returns the list of all locked files for user.
GET
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
getVersionedFiles - Returns list of files that have 1 or more versions.
GET
deleteFileVersions - Deletes file versions. Can delete all versions or leave a specified count of files.
GET
getFileInfo - Returns information for the file.
GET
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
requestFileApproval - Request a file for approval. It can be used when Approval functionality is enabled
GET
approveFile - Approve a file if it was previously requested ror approval. It can be used when Approval functionality is enabled
GET
getApprovers - Returns list of team members who are `approvers`. These are members who have a role where option `Can approve files` is allowed
GET
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
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
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
doRestoreFile - Start a file recovery. Can recover a file from a version or from a backup.
GET
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
getFileTypeTools - Get available tools. May get file depending info.
GET

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
doRenameFolder - Renames a folder and allows you to change the description
GET
doDeleteFolder - Deletes a folder from StorageMadeEasy Cloud file system and the underlying cloud provider if the cloud provider supports this functionality.
GET
doMoveFolders - Move folder(s) to another folder.
GET
getFoldersList - Returns list of folders for account.
GET
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
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
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
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
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
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
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
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
getFolderQuotas - Get list of all folders that has quotas
GET
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
getFolderWatermarkStatus - The function to get folder watermarking for pdf status.
GET
setFolderWatermarkStatus - The function to set/unset folder watermarking for pdf status.
GET
getNominatedForWatermarkingFolders - The function to get list of folder with watermarking for pdf (for preview or shared links).
GET

Commenting files

addComment - Add new comment for a file or a folder.
GET
addFileComment - This is the aliace for the API addComment
GET
updateComment - Update comment for a file or a folder.
GET
updateFileComment - Aliace for the API updateComment
GET
removeComment - Remove file or folder comment.
GET
removeFileComment - Aliace for the API removeComment
GET
getComments - Get comments for a file or a folder.
GET
getFileComments - The aliace for the API getComments
GET
getCommentedFiles - Check what files from specified list of files have any comments.
GET
getCommentAttachFolder - Returns a folder ID where a comment attachments can be uploaded.
GET
attachFileToComment - Attach a file to a comment as attachment. A file had to be uploaded to the folder returned with the funcion getCommentAttachFolder.
GET
removeCommentAttachment - Removes a comment attachment.
GET

Cloud Group and Sharing functions

doSendEmail - Send email to a friend with the file download link.
GET
getGroupsList - Return all groups that has the current user as the member or just selected group information.
GET
getGroups - Return all groups where the current user is the member .
GET
getGroupUsers - Return list of members for a group.
GET
getGroupInvitations - Return list of active invitations to a group.
GET
getAllShared - Returns the list of all shared files.
GET
getSharedByGroup - Returns the list of files shared for a specified group and user.
GET
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
getFileURLList - Get list of all generated URLs to file or folder.
GET
getSharedURLList - Get list of all generated URLs of users.
GET
getUserSharedURLList - Get list of all generated URLs forthe user.
GET
updateFileURL - Update link to file info. If days and hours and minutes are 0 then the link time is unlimited.
GET
deleteFileURL - Delete link to file.
GET
getSharedFolderContents - Return all files and sub-folders in a given shared folder with attributes.
GET
doCreateFolderInShared - Create folder inside shared drop folder.
GET
getFileUrlAccessCode - Send file URL access code on email.
GET
getFileViewEditUrl - Get file edit or view url. You may use getFileTypeTools API call to find file related tools or available tools.
GET
getSharedByUser - Returns all files shared by user for current user.
GET
doCreateGroup - Create new group.
GET
doRenameGroup - Update group info.
GET
doDeleteGroup - Delete group. Only the group creator can delete it.
GET
doEditGroupUser - Edit group member permissions.
GET
doInviteToGroup - Send email to a friend / colleague with the link to become a member of a business group.
GET
doRepeatInvitation - Repeat email to friend with link to become a member of a business group.
GET
doAcceptInvitation - Accept or refuse invitation to the business group.
GET
doDeleteInvitation - Delete invitation.
GET
doShareFileWithGroup - Share the file with the group or the user.
GET
doShareFolderWithGroup - Share the folder with the business group or the user.
GET
getFileSharingStatus - Get the list of groups and users that the file/folder is shared for.
GET
getSharingStatus - This is alias for function getFileSharingStatus.
GET
doDeleteShared - Delete shared file from shared files list.
GET
doUnsubscribeGroup - Unsubscribe user from the business group.
GET
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
doPublicFile - Set or unset a file as public. A public file can be viewed by anyone on the Internet.
GET
getPublicFiles - Searches public files.
GET
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
doAddAutoShareRule - Add a new rule for autosharing.
GET
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

Email backup functions

getEmailAccounts - Returns the list of all email accounts for a user.
GET
doCheckEmailAccountSettings - Check email account settings. This function is used to check if user entered valid IMAP data before adding a new email account.
GET
doCreateEmailAccount - Create a new email account
GET
doEditEmailAccount - Email account information
GET
doDeleteEmailAccount - Delete email account.
GET
doBackupEmailBoxInBackground - Add email box backup task to background tasks. Status of the backup can be obtained with the background tasks functions.
GET
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

Encryption functions

doCheckEncryptionPhrase - Checks if the encryption phrase is correct for the file.
GET
setFolderEncryptStatus - The function to set\unset folder files encryption.
GET
getFolderEncryptStatus - The function to get folder encryption status.
GET
getNominatedForEncryptionFolders - The function to get list of folders nominated for encryption.
GET

Fax functions

doFaxDocuments - Fax documents. Note that an Interfax account is needed for Faxing.
GET
getFaxesList - Get list of documents that are in temporary list prepared for faxing. Note an Interfax account is needed for faxing.
GET
doAddToMyFaxes - Add (delete) document(s) to (from) temporary list of documents for faxing. Note an Interfax account is needed for faxing.
GET

Filter functions

getFilesFilter - Returns filter if it was set by user
GET
doSetFilesFilter - Set/update files filter.
GET
doDeleteFilesFilter - Deletes files filter if it was set by user
GET
doSuggestTags - Return list of tags that starts with specified string. Can be used for adding of new tags
GET

Trash functions

getFolderContentsFromTrash - Return files and sub-folders in a given folder with all attributes.
GET
doDeleteFromTrash - Deletes specified files/folders from trash. If file ID is 0 then all trash content is deleted (emptying the trash)
GET
doRestoreFromTrash - Restores specified files/folders from trash. If files/folders are not specified then all trash content is restored and trash cleared
GET
emptyTrashInBackground - Remove all files from Trash with background processing. If this function is called then a new background task is created.
GET

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
getProvidersForOrgMember - This function can be called by Team Admin to return providers of Team member (private and Team providers).
GET
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
getResyncReports - Get reports about provider sync.
GET
getResyncReport - Get provider sync report log records.
GET
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
checkProviderObjectState - Checks if a file/folder from a cloud exists in Nasuni Access Anywhere Server.
GET
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
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
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
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
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
doSetDefaultProvider - Set provider to be the default
GET
doSetMasterCopy - Set or unset provider as the golden copy of data that will be used for sync with a provider.
GET
getProviderBuckets - List provider buckets. This is used only for S3 or Mosso (RackSpace). For Mosso (RackSpace) bucket means container.
GET
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
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
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
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