| |||||
Zoho Writer API Get started with the Writer APIs
Zoho Writer provides REST style Web APIs which allows client applications to view, list, edit, save, import, export and perform a host of useful operations on their documents. Thus, these APIs provide an easy way to integrate Zoho Writer documents into your application.
The REST specification is often used to describe any simple interface that transmits domain specific data over HTTP without an additional messaging layer such as SOAP. An important concept in REST is the existence of resources (sources of specific information), each of which can be referred to using a global identifier (a URI). In order to manipulate these resources, components of the network (clients and servers) communicate via a standardized interface (e.g. HTTP) and exchange representations of these resources (the actual documents conveying the information).
The calling conventions employed over here for these APIs are GET and POST depending on the kind of operation (Read/Write) that is being performed. In return the user gets a formatted XML/JSON response from the called method.
The previous version of our APIs were loosely based on RPC style. The Web APIs based on XML-RPC specification can be found here.
To get started with the Writer REST APIs, please refer our API Reference.
The request format will vary depending on the type of operation (Read or Write) being performed by the APIs. The most important HTTP methods are GET and POST. GET calling convention is analogous to READ operation whereas POST method is used where data is to be written or modified. The following basic operations are performed using the Zoho Writer APIs:
<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/api/private/xml/documents">
<result>
[specific XML response here]
</result>
</response>
| Code | Category | Description |
| 1400 | General | Error occurred while parsing the URI |
| 1401 | General | Authentication failed because of invalid "ticket" |
| 1404 | General | Document not found |
| 1405 | General | No such Method. Incorrect method name |
| 1890 | General | The "apikey" specified in the request is invalid. |
| 1822 | General | Authentication failed for GET method |
| 1833 | General | Server Error while processing the request |
| 1832 | Input | Missing argument error. Mandatory arguments, required for processing this request is missing |
| 1416 | Input | Specified value is not consistent for the present request. Request range not satisfied. |
| 1801 | Input | Document name specified should not contain special characters. |
| 1500 | Input | Unsupported Media Type, Upload Failed please try again with proper input. |
| 1802 | Input | Invalid image name. Name specified should not start with a number |
| 1800 | No documents in the trashed list | |
| 1803 | Please specify the document content type | |
| 1804 | Tag-name not found. No such tag exists for the document | |
| 1805 | No such document exist for the given tag-name. | |
| 1806 | No such document found in the shared list | |
| 1807 | The document is already trashed. | |
| 1810 | Tag-name already exists for the document. |
To get started with the Writer REST APIs, please refer our API Reference.