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 }