Xdoc Cloud Service API (II)

Source: Internet
Author: User

1.Greeting

Method

_func=hi

Optional parameters

_rformat

Result format, optional value: XML (default), JSON, HTML

Successful return value

Xml

<? XML Version="1.0" encoding="Utf-8"?>

< Response Success="true">

<result dataType="string">

<![ cdata[OK]]>

</result>

</ Response >

Json

{

"Success":"true",

"Result": {

"DataType":"string",

"value":"OK"

}

}

Note: hereinafter referred to as OK, no longer repeat

Failed return value

Xml

<? XML Version="1.0" encoding="Utf-8"?>

< Response Success="false">

& nbsp;   < Span style= "font-size:13px;font-family: ' Microsoft Jas Black ', ' sans-serif '; color: #3F7F7F" >error error message error

<cause>

<![ cdata[ error cause ]]>

</ cause >

</ Response >

Json

{

& nbsp;   "success" : " false "

& nbsp;   "error" : " error message"

"Cause":" cause of error "

}

Note: The error return value is similar, the following no longer repeat.

Example

Http://xdoc.sinaapp.com/xdoc?_func=hi

2.about the

Display Server version and licensing information

Method

_func=about

Optional parameters

_rformat

Result format, optional value: XML (default), JSON, HTML

Successful return value

Xml

<? XML Version="1.0" encoding="Utf-8"?>

< Response Success="true">

<result dataType="string">

<![ cdata[XDOC Server a.1.5

XDOC

c417fe75634d

2014-03-21~2015-03-21

1/100 ]]>

</ result >

</ Response >

Json

{

"Result": {

"DataType":"string",

"value":"XDOC Server a.1.5\nxdoc\nc417fe75634d\n2014-03-21~2015-03-21\n1\/100"

},

"Success":"true"

}


Xdoc Cloud Service API (II)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.