POST api/Files/GetPicture

Get the image uploaded on the device

Request Information

Body Parameters

The device image takes the parameters

PictureModel
NameDescriptionTypeAdditional information
Imei

Imei

string

None.

MinDate

Minimum time

date

None.

DayPerPage

A few days each page

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:
{
  "Imei": "sample string 1",
  "MinDate": "2018-12-19T14:14:15.548125+08:00",
  "DayPerPage": 3,
  "Token": "sample string 4",
  "Language": "sample string 5",
  "AppId": "sample string 6"
}

application/xml, text/xml

Sample:
<PictureModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 6</AppId>
  <Language>sample string 5</Language>
  <Token>sample string 4</Token>
  <DayPerPage>3</DayPerPage>
  <Imei>sample string 1</Imei>
  <MinDate>2018-12-19T14:14:15.548125+08:00</MinDate>
</PictureModel>

Response Information

Resource Description

Stateillustrate:
0. success
100. no data

PictureResult
NameDescriptionTypeAdditional information
FileUrl

Image server path

string

None.

Items

Daily picture collection

Collection of DayPicture

None.

State

status code

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",
          "FileName": "sample string 3",
          "Created": "sample string 4",
          "Url": "sample string 5"
        },
        {
          "FileId": 1,
          "SerialNumber": "sample string 2",
          "FileName": "sample string 3",
          "Created": "sample string 4",
          "Url": "sample string 5"
        }
      ]
    },
    {
      "Date": "sample string 1",
      "Items": [
        {
          "FileId": 1,
          "SerialNumber": "sample string 2",
          "FileName": "sample string 3",
          "Created": "sample string 4",
          "Url": "sample string 5"
        },
        {
          "FileId": 1,
          "SerialNumber": "sample string 2",
          "FileName": "sample string 3",
          "Created": "sample string 4",
          "Url": "sample string 5"
        }
      ]
    }
  ],
  "State": 2
}

application/xml, text/xml

Sample:
<PictureResult 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>
    <DayPicture>
      <Date>sample string 1</Date>
      <Items xmlns:d4p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
        <d4p1:Picture>
          <d4p1:Created>sample string 4</d4p1:Created>
          <d4p1:FileId>1</d4p1:FileId>
          <d4p1:FileName>sample string 3</d4p1:FileName>
          <d4p1:SerialNumber>sample string 2</d4p1:SerialNumber>
          <d4p1:Url>sample string 5</d4p1:Url>
        </d4p1:Picture>
        <d4p1:Picture>
          <d4p1:Created>sample string 4</d4p1:Created>
          <d4p1:FileId>1</d4p1:FileId>
          <d4p1:FileName>sample string 3</d4p1:FileName>
          <d4p1:SerialNumber>sample string 2</d4p1:SerialNumber>
          <d4p1:Url>sample string 5</d4p1:Url>
        </d4p1:Picture>
      </Items>
    </DayPicture>
    <DayPicture>
      <Date>sample string 1</Date>
      <Items xmlns:d4p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
        <d4p1:Picture>
          <d4p1:Created>sample string 4</d4p1:Created>
          <d4p1:FileId>1</d4p1:FileId>
          <d4p1:FileName>sample string 3</d4p1:FileName>
          <d4p1:SerialNumber>sample string 2</d4p1:SerialNumber>
          <d4p1:Url>sample string 5</d4p1:Url>
        </d4p1:Picture>
        <d4p1:Picture>
          <d4p1:Created>sample string 4</d4p1:Created>
          <d4p1:FileId>1</d4p1:FileId>
          <d4p1:FileName>sample string 3</d4p1:FileName>
          <d4p1:SerialNumber>sample string 2</d4p1:SerialNumber>
          <d4p1:Url>sample string 5</d4p1:Url>
        </d4p1:Picture>
      </Items>
    </DayPicture>
  </Items>
</PictureResult>