Table of Contents

Read file

You may read whole text file using file/read :

svc=file/read&params={"itemId":<long>,
		      "storageType":<uint>,
		      "path":<text>,
		      "contentType":<uint>}

Parameters

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

Response

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 info@gurtam.com   |   Copyright © 2002-2024 Gurtam