POST api/Group/GroupList

To obtain a list account group [machine]

Request Information

Body Parameters

required parameter

GroupListModel
NameDescriptionTypeAdditional information
UserId

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

application/xml, text/xml

Sample:
<GroupListModel 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>
  <UserId>1</UserId>
</GroupListModel>

Response Information

Resource Description

Statestatus code:
0. Indicates success
100. stands no data

GroupListResult
NameDescriptionTypeAdditional information
Items

Group information collection

Collection of GroupInfo

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "GroupID": 1,
      "GroupName": "sample string 2",
      "UserID": 3,
      "Username": "sample string 4",
      "Description": "sample string 5",
      "Created": "sample string 6",
      "GroupType": 7,
      "AccountID": 8,
      "Deleted": true
    },
    {
      "GroupID": 1,
      "GroupName": "sample string 2",
      "UserID": 3,
      "Username": "sample string 4",
      "Description": "sample string 5",
      "Created": "sample string 6",
      "GroupType": 7,
      "AccountID": 8,
      "Deleted": true
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<GroupListResult 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:GroupInfo>
      <d2p1:AccountID>8</d2p1:AccountID>
      <d2p1:Created>sample string 6</d2p1:Created>
      <d2p1:Deleted>true</d2p1:Deleted>
      <d2p1:Description>sample string 5</d2p1:Description>
      <d2p1:GroupID>1</d2p1:GroupID>
      <d2p1:GroupName>sample string 2</d2p1:GroupName>
      <d2p1:GroupType>7</d2p1:GroupType>
      <d2p1:UserID>3</d2p1:UserID>
      <d2p1:Username>sample string 4</d2p1:Username>
    </d2p1:GroupInfo>
    <d2p1:GroupInfo>
      <d2p1:AccountID>8</d2p1:AccountID>
      <d2p1:Created>sample string 6</d2p1:Created>
      <d2p1:Deleted>true</d2p1:Deleted>
      <d2p1:Description>sample string 5</d2p1:Description>
      <d2p1:GroupID>1</d2p1:GroupID>
      <d2p1:GroupName>sample string 2</d2p1:GroupName>
      <d2p1:GroupType>7</d2p1:GroupType>
      <d2p1:UserID>3</d2p1:UserID>
      <d2p1:Username>sample string 4</d2p1:Username>
    </d2p1:GroupInfo>
  </Items>
</GroupListResult>