POST api/Files/GetVoice

To obtain a single voice messages

Request Information

Body Parameters

request parameters

GetVoiceModel
NameDescriptionTypeAdditional information
FileId

file id

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FileId": 1,
  "Token": "sample string 2",
  "Language": "sample string 3",
  "AppId": "sample string 4"
}

application/xml, text/xml

Sample:
<GetVoiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 4</AppId>
  <Language>sample string 3</Language>
  <Token>sample string 2</Token>
  <FileId>1</FileId>
</GetVoiceModel>

Response Information

Resource Description

Statestatus code:
0. Indicates success
100. no data

GetVoiceResult
NameDescriptionTypeAdditional information
FileUrl

string

None.

Items

Collection of VoiceFile

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "FileUrl": "sample string 1",
  "Items": [
    {
      "FileId": 1,
      "SerialNumber": "sample string 2",
      "FileUrl": "sample string 3",
      "Lng": 4.0,
      "Lat": 5.0,
      "Created": "sample string 6",
      "SourceType": 7,
      "Long": 8,
      "Type": 9,
      "Content": "sample string 10",
      "IsRead": true,
      "IdentityID": "sample string 12",
      "Avatar": "sample string 13",
      "UserId": 1,
      "Address": "sample string 14",
      "SendName": "sample string 15"
    },
    {
      "FileId": 1,
      "SerialNumber": "sample string 2",
      "FileUrl": "sample string 3",
      "Lng": 4.0,
      "Lat": 5.0,
      "Created": "sample string 6",
      "SourceType": 7,
      "Long": 8,
      "Type": 9,
      "Content": "sample string 10",
      "IsRead": true,
      "IdentityID": "sample string 12",
      "Avatar": "sample string 13",
      "UserId": 1,
      "Address": "sample string 14",
      "SendName": "sample string 15"
    }
  ],
  "State": 2
}

application/xml, text/xml

Sample:
<GetVoiceResult 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 xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:VoiceFile>
      <d2p1:Address>sample string 14</d2p1:Address>
      <d2p1:Avatar>sample string 13</d2p1:Avatar>
      <d2p1:Content>sample string 10</d2p1:Content>
      <d2p1:Created>sample string 6</d2p1:Created>
      <d2p1:FileId>1</d2p1:FileId>
      <d2p1:FileUrl>sample string 3</d2p1:FileUrl>
      <d2p1:IdentityID>sample string 12</d2p1:IdentityID>
      <d2p1:IsRead>true</d2p1:IsRead>
      <d2p1:Lat>5</d2p1:Lat>
      <d2p1:Lng>4</d2p1:Lng>
      <d2p1:Long>8</d2p1:Long>
      <d2p1:SendName>sample string 15</d2p1:SendName>
      <d2p1:SerialNumber>sample string 2</d2p1:SerialNumber>
      <d2p1:SourceType>7</d2p1:SourceType>
      <d2p1:Type>9</d2p1:Type>
      <d2p1:UserId>1</d2p1:UserId>
    </d2p1:VoiceFile>
    <d2p1:VoiceFile>
      <d2p1:Address>sample string 14</d2p1:Address>
      <d2p1:Avatar>sample string 13</d2p1:Avatar>
      <d2p1:Content>sample string 10</d2p1:Content>
      <d2p1:Created>sample string 6</d2p1:Created>
      <d2p1:FileId>1</d2p1:FileId>
      <d2p1:FileUrl>sample string 3</d2p1:FileUrl>
      <d2p1:IdentityID>sample string 12</d2p1:IdentityID>
      <d2p1:IsRead>true</d2p1:IsRead>
      <d2p1:Lat>5</d2p1:Lat>
      <d2p1:Lng>4</d2p1:Lng>
      <d2p1:Long>8</d2p1:Long>
      <d2p1:SendName>sample string 15</d2p1:SendName>
      <d2p1:SerialNumber>sample string 2</d2p1:SerialNumber>
      <d2p1:SourceType>7</d2p1:SourceType>
      <d2p1:Type>9</d2p1:Type>
      <d2p1:UserId>1</d2p1:UserId>
    </d2p1:VoiceFile>
  </Items>
</GetVoiceResult>