参数 | 类型 | 描述 |
---|---|---|
apiKey | string | 你的API Key, 需要验证. 必填. |
ID | integer | 导入 ID. 要求以地址一部分的形式应用 (非 GET参数). 见下例. |
示例URL:
https://api.esv2.com/v2/Api/ImportToDataTableTasks/39?apiKey=test_api_key1 |
元素/属性 | 类型 | 描述 |
---|---|---|
Name | string | 导入任务名称. |
Url | string | 包含所导入数据的文件所在URL地址. |
History | array[complex] | 元素所组成的数组,描述导入执行.* |
*如导入任务还未被执行则History为空
元素/属性 | 类型 | 描述 |
---|---|---|
StartedAt | dateTime | 导入起始时间. |
UpdatedAt | dateTime | 导入任务状态的最后变化时间. |
Status | string | 导入状态. 为: “Queued(排队等候)””InProgress(正在进行)”, “Completed(完成)”, “Error(发生错误)”其中之一 |
Details | string | 附加信息, 如,导入失败会产生的报错信息. |
GET https://api.esv2.com/v2/Api/ImportToDataTableTasks?apiKey=test_api_key1&id=39
HTTP/1.1
Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: api.esv2.com
|
HTTP/1.1 200 OK Cache-Control: private Content-Type: text/xml; charset=utf-8 Server: Microsoft-IIS/8.0 X-AspNetMvc-Version: 5.2 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Mon, 19 Jan 2015 13:32:30 GMT Content-Length: 367 <ApiResponse xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”> |