| |||||
writer.newDocument - Create a new document.
| Field | Description |
| documentname | [scalar] - required* - Name of the new document created |
| content | [scalar] - required* - Add content to the new document. |
POST /interface/xmlrpc HTTP/1.0
Host: http://www.writer.zoho.com/
Content-Type: text/xml
Content-Length:
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<methodCall>
<methodName>writer.newDocument</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>documentname</name>
<value><string>test</string></value>
</member>
<member>
<name>content</name>
<value><string><![CDATA[<html><head><link href="http://localhost:8080/styles/editor.css" rel="stylesheet"id="stylesheetforeditor">
<style id="styletagforeditor">body {border: 0px; font-family:verdana; font-size:10pt;background-color:#990066;}</style> </head><body><br></body></html>]]></string></value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>
HTTP/1.1 200 OK
Connection: close
Content-Length:
Content-Type: text/xml
Date: Wed 01 Nov 2006 23:45:59 GMT
Server: Apache/1.3.4 (Unix)
<methodResponse>
<Create>
<document_name>test</document_name>
<document_id>6000000057003</document_id>
<version>1.0</version>
<document_name_url>test1</document_name_url>
<author_name>jackstraw@squidpro.com</author_name>
<created_date>Wed, Sep 27, 2006</created_date>
<document_trashed>false</document_trashed>
<lastmodifiedby>alanpardew@madagascar.com</lastmodifiedby>
<shared_users>[]</shared_users>
<document_locked>false</document_locked>
<document_blogged>false</document_blogged>
<category>OWNED</category>
<info>The document is created successfully</info>
</Create>
</methodResponse>