POST api/Files/FileListByTime
按时间获取文件列表,并按日期分组返回
Request Information
Body Parameters
FileListByTimeModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Imei |
设备imei |
string |
None. |
| Start |
开始时间 UTC |
date |
None. |
| End |
结束时间 UTC |
date |
None. |
| FileType |
文件类型 1:语音,2:图片,3:文字 |
integer |
None. |
| GetTop |
时间段无数据时。取前100条数据 |
boolean |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Imei": "sample string 1",
"Start": "2025-12-12T05:25:43.9522293+08:00",
"End": "2025-12-12T05:25:43.9522293+08:00",
"FileType": 4,
"GetTop": true,
"Token": "sample string 6",
"Language": "sample string 7",
"AppId": "sample string 8"
}
application/xml, text/xml
Sample:
<FileListByTimeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 8</AppId> <Language>sample string 7</Language> <Token>sample string 6</Token> <End>2025-12-12T05:25:43.9522293+08:00</End> <FileType>4</FileType> <GetTop>true</GetTop> <Imei>sample string 1</Imei> <Start>2025-12-12T05:25:43.9522293+08:00</Start> </FileListByTimeModel>
Response Information
Resource Description
State状态说明:
0. 表示成功
1100. 设备不存在
| Name | Description | Type | Additional information |
|---|---|---|---|
| FileUrl | string |
None. |
|
| Items | Collection of DayFile |
None. |
|
| State |
状态码 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"FileUrl": "sample string 1",
"Items": [
{
"Date": "sample string 1",
"Items": [
{
"FileId": 1,
"SerialNumber": "sample string 2",
"CamerId": 3,
"FileName": "sample string 4",
"FilePath": "sample string 5",
"Type": 6,
"FileExt": "sample string 7",
"Event": 8,
"Created": "2025-12-12T05:25:43.9571123+08:00",
"Lat": 10.0,
"Lng": 11.0,
"Speed": 12.0,
"Course": 13,
"SerialNo": 14,
"Long": 15,
"IsRead": true,
"SourceType": 17,
"IdentityID": "sample string 18",
"Context": "sample string 19",
"UserId": 20,
"EIndex": 21,
"Url": "sample string 22"
},
{
"FileId": 1,
"SerialNumber": "sample string 2",
"CamerId": 3,
"FileName": "sample string 4",
"FilePath": "sample string 5",
"Type": 6,
"FileExt": "sample string 7",
"Event": 8,
"Created": "2025-12-12T05:25:43.9571123+08:00",
"Lat": 10.0,
"Lng": 11.0,
"Speed": 12.0,
"Course": 13,
"SerialNo": 14,
"Long": 15,
"IsRead": true,
"SourceType": 17,
"IdentityID": "sample string 18",
"Context": "sample string 19",
"UserId": 20,
"EIndex": 21,
"Url": "sample string 22"
}
]
},
{
"Date": "sample string 1",
"Items": [
{
"FileId": 1,
"SerialNumber": "sample string 2",
"CamerId": 3,
"FileName": "sample string 4",
"FilePath": "sample string 5",
"Type": 6,
"FileExt": "sample string 7",
"Event": 8,
"Created": "2025-12-12T05:25:43.9571123+08:00",
"Lat": 10.0,
"Lng": 11.0,
"Speed": 12.0,
"Course": 13,
"SerialNo": 14,
"Long": 15,
"IsRead": true,
"SourceType": 17,
"IdentityID": "sample string 18",
"Context": "sample string 19",
"UserId": 20,
"EIndex": 21,
"Url": "sample string 22"
},
{
"FileId": 1,
"SerialNumber": "sample string 2",
"CamerId": 3,
"FileName": "sample string 4",
"FilePath": "sample string 5",
"Type": 6,
"FileExt": "sample string 7",
"Event": 8,
"Created": "2025-12-12T05:25:43.9571123+08:00",
"Lat": 10.0,
"Lng": 11.0,
"Speed": 12.0,
"Course": 13,
"SerialNo": 14,
"Long": 15,
"IsRead": true,
"SourceType": 17,
"IdentityID": "sample string 18",
"Context": "sample string 19",
"UserId": 20,
"EIndex": 21,
"Url": "sample string 22"
}
]
}
],
"State": 2
}
application/xml, text/xml
Sample:
<FileListByTimeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
<State>2</State>
<FileUrl>sample string 1</FileUrl>
<Items>
<DayFile>
<Date>sample string 1</Date>
<Items xmlns:d4p1="http://schemas.datacontract.org/2004/07/NetApi.Helper.Models.ViewModel">
<d4p1:DeviceFile>
<d4p1:CamerId>3</d4p1:CamerId>
<d4p1:Context>sample string 19</d4p1:Context>
<d4p1:Course>13</d4p1:Course>
<d4p1:Created>2025-12-12T05:25:43.9571123+08:00</d4p1:Created>
<d4p1:EIndex>21</d4p1:EIndex>
<d4p1:Event>8</d4p1:Event>
<d4p1:FileExt>sample string 7</d4p1:FileExt>
<d4p1:FileId>1</d4p1:FileId>
<d4p1:FileName>sample string 4</d4p1:FileName>
<d4p1:FilePath>sample string 5</d4p1:FilePath>
<d4p1:IdentityID>sample string 18</d4p1:IdentityID>
<d4p1:IsRead>true</d4p1:IsRead>
<d4p1:Lat>10</d4p1:Lat>
<d4p1:Lng>11</d4p1:Lng>
<d4p1:Long>15</d4p1:Long>
<d4p1:SerialNo>14</d4p1:SerialNo>
<d4p1:SerialNumber>sample string 2</d4p1:SerialNumber>
<d4p1:SourceType>17</d4p1:SourceType>
<d4p1:Speed>12</d4p1:Speed>
<d4p1:Type>6</d4p1:Type>
<d4p1:Url>sample string 22</d4p1:Url>
<d4p1:UserId>20</d4p1:UserId>
</d4p1:DeviceFile>
<d4p1:DeviceFile>
<d4p1:CamerId>3</d4p1:CamerId>
<d4p1:Context>sample string 19</d4p1:Context>
<d4p1:Course>13</d4p1:Course>
<d4p1:Created>2025-12-12T05:25:43.9571123+08:00</d4p1:Created>
<d4p1:EIndex>21</d4p1:EIndex>
<d4p1:Event>8</d4p1:Event>
<d4p1:FileExt>sample string 7</d4p1:FileExt>
<d4p1:FileId>1</d4p1:FileId>
<d4p1:FileName>sample string 4</d4p1:FileName>
<d4p1:FilePath>sample string 5</d4p1:FilePath>
<d4p1:IdentityID>sample string 18</d4p1:IdentityID>
<d4p1:IsRead>true</d4p1:IsRead>
<d4p1:Lat>10</d4p1:Lat>
<d4p1:Lng>11</d4p1:Lng>
<d4p1:Long>15</d4p1:Long>
<d4p1:SerialNo>14</d4p1:SerialNo>
<d4p1:SerialNumber>sample string 2</d4p1:SerialNumber>
<d4p1:SourceType>17</d4p1:SourceType>
<d4p1:Speed>12</d4p1:Speed>
<d4p1:Type>6</d4p1:Type>
<d4p1:Url>sample string 22</d4p1:Url>
<d4p1:UserId>20</d4p1:UserId>
</d4p1:DeviceFile>
</Items>
</DayFile>
<DayFile>
<Date>sample string 1</Date>
<Items xmlns:d4p1="http://schemas.datacontract.org/2004/07/NetApi.Helper.Models.ViewModel">
<d4p1:DeviceFile>
<d4p1:CamerId>3</d4p1:CamerId>
<d4p1:Context>sample string 19</d4p1:Context>
<d4p1:Course>13</d4p1:Course>
<d4p1:Created>2025-12-12T05:25:43.9571123+08:00</d4p1:Created>
<d4p1:EIndex>21</d4p1:EIndex>
<d4p1:Event>8</d4p1:Event>
<d4p1:FileExt>sample string 7</d4p1:FileExt>
<d4p1:FileId>1</d4p1:FileId>
<d4p1:FileName>sample string 4</d4p1:FileName>
<d4p1:FilePath>sample string 5</d4p1:FilePath>
<d4p1:IdentityID>sample string 18</d4p1:IdentityID>
<d4p1:IsRead>true</d4p1:IsRead>
<d4p1:Lat>10</d4p1:Lat>
<d4p1:Lng>11</d4p1:Lng>
<d4p1:Long>15</d4p1:Long>
<d4p1:SerialNo>14</d4p1:SerialNo>
<d4p1:SerialNumber>sample string 2</d4p1:SerialNumber>
<d4p1:SourceType>17</d4p1:SourceType>
<d4p1:Speed>12</d4p1:Speed>
<d4p1:Type>6</d4p1:Type>
<d4p1:Url>sample string 22</d4p1:Url>
<d4p1:UserId>20</d4p1:UserId>
</d4p1:DeviceFile>
<d4p1:DeviceFile>
<d4p1:CamerId>3</d4p1:CamerId>
<d4p1:Context>sample string 19</d4p1:Context>
<d4p1:Course>13</d4p1:Course>
<d4p1:Created>2025-12-12T05:25:43.9571123+08:00</d4p1:Created>
<d4p1:EIndex>21</d4p1:EIndex>
<d4p1:Event>8</d4p1:Event>
<d4p1:FileExt>sample string 7</d4p1:FileExt>
<d4p1:FileId>1</d4p1:FileId>
<d4p1:FileName>sample string 4</d4p1:FileName>
<d4p1:FilePath>sample string 5</d4p1:FilePath>
<d4p1:IdentityID>sample string 18</d4p1:IdentityID>
<d4p1:IsRead>true</d4p1:IsRead>
<d4p1:Lat>10</d4p1:Lat>
<d4p1:Lng>11</d4p1:Lng>
<d4p1:Long>15</d4p1:Long>
<d4p1:SerialNo>14</d4p1:SerialNo>
<d4p1:SerialNumber>sample string 2</d4p1:SerialNumber>
<d4p1:SourceType>17</d4p1:SourceType>
<d4p1:Speed>12</d4p1:Speed>
<d4p1:Type>6</d4p1:Type>
<d4p1:Url>sample string 22</d4p1:Url>
<d4p1:UserId>20</d4p1:UserId>
</d4p1:DeviceFile>
</Items>
</DayFile>
</Items>
</FileListByTimeResult>