POST api/Push/GetPushSetting

Get push Settings

Request Information

Body Parameters

Take the parameter Settings information and get the push configuration information based on the login type and Id

GetPushModel
NameDescriptionTypeAdditional information
Id

Id

integer

None.

LoginType

Login type

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:
{
  "Id": 1,
  "LoginType": 2,
  "Token": "sample string 3",
  "Language": "sample string 4",
  "AppId": "sample string 5"
}

application/xml, text/xml

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

Response Information

Resource Description

Return a push configuration information
Statestatus code:
0. Indicates success
6000. No push setting

GetPushResult
NameDescriptionTypeAdditional information
Item

set information

PushSetting

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Item": {
    "Id": 1,
    "LoginType": 2,
    "Client": 3,
    "IsPush": true,
    "Sound": true,
    "Shock": true,
    "AllDayPush": true,
    "StartTime": "sample string 8",
    "EndTime": "sample string 9"
  },
  "State": 1
}

application/xml, text/xml

Sample:
<GetPushResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:AllDayPush>true</d2p1:AllDayPush>
    <d2p1:Client>3</d2p1:Client>
    <d2p1:EndTime>sample string 9</d2p1:EndTime>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:IsPush>true</d2p1:IsPush>
    <d2p1:LoginType>2</d2p1:LoginType>
    <d2p1:Shock>true</d2p1:Shock>
    <d2p1:Sound>true</d2p1:Sound>
    <d2p1:StartTime>sample string 8</d2p1:StartTime>
  </Item>
</GetPushResult>