POST api/Files/VoiceFileListByTime

通过用户获取语音聊天记录

Request Information

Body Parameters

请求参数

VoiceFileListByTimeModel
NameDescriptionTypeAdditional information
pageCount

每页数量

integer

None.

pageNo

当前页面

integer

None.

UserId

用户 id

integer

None.

Type

群聊:1单聊:2群聊

integer

None.

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:
{
  "pageCount": 1,
  "pageNo": 2,
  "UserId": 3,
  "Type": 4,
  "Imei": "sample string 5",
  "Start": "2025-12-12T05:25:42.5947553+08:00",
  "End": "2025-12-12T05:25:42.5947553+08:00",
  "FileType": 8,
  "GetTop": true,
  "Token": "sample string 10",
  "Language": "sample string 11",
  "AppId": "sample string 12"
}

application/xml, text/xml

Sample:
<VoiceFileListByTimeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 12</AppId>
  <Language>sample string 11</Language>
  <Token>sample string 10</Token>
  <End>2025-12-12T05:25:42.5947553+08:00</End>
  <FileType>8</FileType>
  <GetTop>true</GetTop>
  <Imei>sample string 5</Imei>
  <Start>2025-12-12T05:25:42.5947553+08:00</Start>
  <Type>4</Type>
  <UserId>3</UserId>
  <pageCount>1</pageCount>
  <pageNo>2</pageNo>
</VoiceFileListByTimeModel>

Response Information

Resource Description

State状态说明:
0. 成功
1100. 设备不存在

VoiceFileListByTimeResult
NameDescriptionTypeAdditional information
Items

语音文件集合

Collection of VoiceFile

None.

State

状态码

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "FileId": 1,
      "SerialNumber": "sample string 2",
      "FileUrl": "sample string 3",
      "Created": "sample string 4",
      "SourceType": 5,
      "Long": 6,
      "Type": 7,
      "Content": "sample string 8",
      "IsRead": true,
      "IdentityID": "sample string 10",
      "Avatar": "sample string 11",
      "UserId": 1
    },
    {
      "FileId": 1,
      "SerialNumber": "sample string 2",
      "FileUrl": "sample string 3",
      "Created": "sample string 4",
      "SourceType": 5,
      "Long": 6,
      "Type": 7,
      "Content": "sample string 8",
      "IsRead": true,
      "IdentityID": "sample string 10",
      "Avatar": "sample string 11",
      "UserId": 1
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<VoiceFileListByTimeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:VoiceFile>
      <d2p1:Avatar>sample string 11</d2p1:Avatar>
      <d2p1:Content>sample string 8</d2p1:Content>
      <d2p1:Created>sample string 4</d2p1:Created>
      <d2p1:FileId>1</d2p1:FileId>
      <d2p1:FileUrl>sample string 3</d2p1:FileUrl>
      <d2p1:IdentityID>sample string 10</d2p1:IdentityID>
      <d2p1:IsRead>true</d2p1:IsRead>
      <d2p1:Long>6</d2p1:Long>
      <d2p1:SerialNumber>sample string 2</d2p1:SerialNumber>
      <d2p1:SourceType>5</d2p1:SourceType>
      <d2p1:Type>7</d2p1:Type>
      <d2p1:UserId>1</d2p1:UserId>
    </d2p1:VoiceFile>
    <d2p1:VoiceFile>
      <d2p1:Avatar>sample string 11</d2p1:Avatar>
      <d2p1:Content>sample string 8</d2p1:Content>
      <d2p1:Created>sample string 4</d2p1:Created>
      <d2p1:FileId>1</d2p1:FileId>
      <d2p1:FileUrl>sample string 3</d2p1:FileUrl>
      <d2p1:IdentityID>sample string 10</d2p1:IdentityID>
      <d2p1:IsRead>true</d2p1:IsRead>
      <d2p1:Long>6</d2p1:Long>
      <d2p1:SerialNumber>sample string 2</d2p1:SerialNumber>
      <d2p1:SourceType>5</d2p1:SourceType>
      <d2p1:Type>7</d2p1:Type>
      <d2p1:UserId>1</d2p1:UserId>
    </d2p1:VoiceFile>
  </Items>
</VoiceFileListByTimeResult>