The read-file command retrieves the contents of a file from bucket.
JSON Input Data Format

    {
        "id": string,
        "name": string,
        "path": string,
        "filename": string,
        "cloudid": string
    }

id * | Specifies the ID of the bucket.
name * | Specifies the name of the bucket.
path * | Specifies the path of the location where the file will be written.
filename * | Specifies the filename.
cloudid * | Specifies the {ANYNODE} ID hosting the bucket.

* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.
Successful Response

    {
        "result": "OK",
        "payload": "The contents\r\nOf the File..."
    }

Failed Response

    {
        "result": "ERR",
        "message": "Error message ..."
    }