Table of Contents

Read file

You may read whole text file using file/read :



Param Description
itemId item id
storageType storage type:
1 - public (all users may see/download
files ),
2 - protected (that users may see/down-
load files who being grant rights)
path relative path from root folder to the file
contentType content type; the content is returned as:
0 - text,
1 - hex string,
2 - base64 string


After read success:

    "content": <content>

where <content> – file content as string.

If there is no such file then:

    "error": 3
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon   |   Copyright © 2002-2023 Gurtam