获取平台日志

Get panel logs 获取平台日志

此方法可以获取平台日志记录的CSV文件.

请求数据格式

请求url参数:
参数 类型 描述
apiKey string 你的 API key, 用来验证身份. 必填.
示例URL:
https://api.esv2.com/v2/Api/PanelLogs?apiKey=test_api_key1
应答

此接口的应答是以CSV形式.
返回内容形式为:”text/csv”.返回值的头部第一行包含了列名称

CSV输出格式:
条目分割符: 逗号 (,)
引用字符: (“)
ESC字符: (“)
编码格式: UTF-8

CSV应答对应列:

Id, Date, Url, Method, E-mail, Remote IP

示例

请求:

GET https://api.esv2.com/v2/Api/PanelLogs?apiKey=test_api_key1 HTTP/1.1

Accept-Encoding: gzip,deflate
User-Agent: Jakarta Commons-HttpClient/3.1
Host: api.esv2.com
OK应答:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/csv; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 2.0
X-AspNet-Version: 2.0.50727
Set-Cookie: TIMEZONE=Central European Standard Time; path=/
X-Powered-By: ASP.NET
Date: Thu, 08 Dec 2011 12:02:14 GMT
Content-Length: 463

Id,Date,Url,Method,E-mail,Remote IP
561650,5/29/2019 12:05:20 AM,https://service2.esv2.com/Auditing/GetPanelLogs,POST,test@test.com,127.0.0.1
561649,5/29/2019 12:05:17 AM,https://service2.esv2.com/Auditing/Panel,GET,test@test.com,127.0.0.1
561648,5/29/2019 12:05:13 AM,https://service2.esv2.com/Newsletters/GetInProgress,POST,test2@test.com,127.0.0.1
561647,5/29/2019 12:05:13 AM,https://service2.esv2.com/Newsletters/GetScheduled,POST,test2@test.com,127.0.0.1