by John Adam.
You will find the URL of the file in the response.
You can test the functions in the web browser.
Example:
From the response:
http://localhost:8080/webservice/pluginfile.php/52/mod_resource/content/1/<theFileName>.docx?forcedownload=1
To download it:
http://localhost:8080/webservice/pluginfile.php/52/mod_resource/content/1/<theFileName>.docx?forcedownload=1&token=<VeryLongID>
Note : This time "token" not "wstoken" in the URL