采用 HTTP POST 方式,为数据表格的条目计数.
元素/属性 | 类型 | 描述 |
---|---|---|
ApiKey | string | 你的 API key, 用于身份验证. 必填 |
TableName | string | 数据表格名称. 必填. |
WhereConditions | complex | 需要指定的位置 (Where元素)选填 |
元素/属性 | 类型 | 描述 |
---|---|---|
ColumnName | string | 列名称. 必填. |
Operator | string | 运算符名称,必填,有效值为: Equals等于 Greater大于 Lower小于 Like |
Value | string | 检索运算比对的值. 必填. |
元素/属性 | 类型 | 描述 |
---|---|---|
Count | int | 数据表格中的条目数 |
POST https://api.esv2.com/v2/Api/DataTablesGetDataCount HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml
User-Agent: Jakarta Commons-HttpClient/3.1
Host: api.esv2.com
Content-Length: 346
<ApiRequest xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xs=”http://www.w3.org/2001/XMLSchema”>
<ApiKey>test_api_key1</ApiKey>
<TableName>Tabela</TableName>
<WhereConditions>
<Where>
<ColumnName>Kolumna8</ColumnName>
<Operator>Like</Operator>
<Value>test</Value>
</Where>
</WhereConditions>
</ApiRequest>
|
HTTP/1.1 200 OK Cache-Control: private Content-Type: text/xml; charset=utf-8 Content-Encoding: gzip Vary: Accept-Encoding Server: Microsoft-IIS/7.5 X-AspNetMvc-Version: 3.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Wed, 23 Jan 2013 13:01:02 GMT Content-Length: 212<ApiResponse xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”> <Count>2</Count> </ApiResponse> |