针对文本创建

    



    用途 

    通过简单文本(字符串)参数用指定的内容创建文档。

    HTTP 请求 URL

    https://writer.zoho.com.cn/api/v1/documents

    请求参数

    参数数据类型描述
    必需参数
    text字符串提供所需文本,带有指定文本的文档将创建。

    样本请求:

    
    				curl "https://writer.zoho.com.cn/api/v1/documents?
    text=This is the sample text for creating document"
    -X POST
    -H "Authorization: Zoho-oauthtoken f92d01c803988c5ch49d0b4215f52"			

    示例响应:

    
    				{
        "document_name": "SLA",
        "created_time": "2017-17-28T09:20:26Z",
        "modified_time": "2017-20-28T10:34:26Z",
        "preview_url": "https://docs.zoho.com/writer/preview/3ieene1be47bf7c7b40aab3fce01b45157f85",
        "download_url": "https://writer.zoho.com.cn/api/v1/download/3ieene1be47bf7c7b40aab3fce01b45157f85",
        "document_id": "3ieene1be47bf7c7b40aab3fce01b45157f85",
        "created_by": "Amelia",
        "open_url": "https://docs.zoho.com/writer/open/3ieene1be47bf7c7b40aab3fce01b45157f85"
    }