Zoho Writer > Writer - REST API Methods > ZW - Get content of the entire document

ZW - Get content of the entire document

Tags:  



Get the entire content of a specific document in HTML format.

 
Request URL :  

                            XML : http://export.writer.zoho.com/api/private/xml/content/[documentID]?apikey=[API Key]&ticket=[Ticket]

                            JSON : http://export.writer.zoho.com/api/private/json/content/[documentID]?apikey=[API Key]&ticket=[Ticket]
 

Request Parameter

Field
Description
version [optional]
[scalar] - Specify the version number of the document whose content is to be viewed.


Response fields

The schema document for the API response is located at: http://export.writer.zoho.com/schema/restapi/view.xsd

Field
Description
content
Displays the content of the document in HTML fomat.


Sample Response

The following is the sample response for the above method:


<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/api/private/xml/content/8892000000009037">
<result>
   <document>
    <content>
      [Content of Doc in HTML format]
    </content>
   </document>
</result>
</response>


Equivalent JSON response


{
  "response":
   {
        "uri": "/api/private/json/content/8892000000009037",
        "result":
        {
           "document":
                      "[Content of Doc in HTML format]"
        }
    }
}  



Errors

Displaying document content method may return general errors. Likely HTTP error code is 1404.
 


 RSS of this page