You may read whole text file using file/read :
svc=file/read¶ms={"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 }