1.0.2 • Published 9 months ago

titan-storage v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Here’s the text translated to English:


Titan Storage Web SDK

The Titan Storage Web SDK provides functionalities for file uploading, downloading, deleting, renaming, sharing, and creating folders.

The Web SDK consists of TitanStorage.

TitanStorage Object

MethodDescription
TitanStorage.initSdkInitialize the SDK
TitanStorage.getAreaIdRetrieve the list of area IDs from the scheduler
TitanStorage.createGroupCreate directories, including root and subdirectories
TitanStorage.getAssetGroupListRetrieve a list of all folders and files
TitanStorage.renameGroupRename a specific folder
TitanStorage.renameAssetRename a specific file
TitanStorage.deleteGroupDelete a specific folder
TitanStorage.deleteAssetDelete a specific file
TitanStorage.userInfoRetrieve user-related information
TitanStorage.getAssetGroupInfoGet detailed information about files/folders
TitanStorage.shareShare file/folder data
TitanStorage.fileUploadUpload files/folders
TitanStorage.fileDownLoadDownload files/folders

Error Codes

Below are the potential errors that the SDK may throw. Please refer to the table for handling suggestions.

Error CodeDescriptionPossible Causes and Suggestions
10001SDK Initialization ExceptionGenerally caused by an incorrect app key; check console logs for details.
10002SDK Initialization FailedGenerally indicates an exception during SDK initialization; check console logs.
10005File or Folder Name ErrorGenerally due to incorrect parameters; check console logs.
10006ID Parameter ErrorGenerally due to incorrect parameters; check console logs.
10007Share FailedGenerally due to unsupported sharing; check console logs.
10008Data Format ErrorGenerally indicates a data format error; check console logs.
10009Incorrect Share PasswordGenerally indicates a data format error; check console logs.
100010Server Request ExceptionGenerally due to request errors; contact technical support.
100011Request Parameter ErrorCheck console logs for details.
100012Invalid ParameterGenerally due to request errors; check console logs.
100013Invalid ParameterGenerally due to request errors; check console logs.
100014Missing Request Parameter FieldCheck console logs for details.
100015Upload FailedCheck console logs for details.
100016Incorrect Area IDGenerally due to incorrect parameter type; check console logs.
100017Incorrect Node DGenerally indicates the parameter was not found; check console logs.
100018File Type Not FoundCheck console logs for details.
100019Download Address ErrorServer returned an incorrect or unusable address; check console logs.
100020Download ExceptionCheck console logs for details.
100021Incorrect File ID VerificationCheck console logs for details.
100022Download Type Not FoundCheck console logs for details.
99999Unknown Error

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago