POST api/Attendance/CardPunchLogs

Add a Card punch log

Request Information

URI Parameters

None.

Body Parameters

CardPunch
NameDescriptionTypeAdditional information
Id

integer

None.

CardId

string

None.

ptime

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CardId": "sample string 2",
  "ptime": "sample string 3"
}

text/html

Sample:
{"Id":1,"CardId":"sample string 2","ptime":"sample string 3"}

application/xml, text/xml

Sample:
<CardPunch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/">
  <CardId>sample string 2</CardId>
  <Id>1</Id>
  <ptime>sample string 3</ptime>
</CardPunch>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultModel
NameDescriptionTypeAdditional information
resultcode

integer

None.

resultstring

string

None.

token

string

None.

schoolid

integer

None.

sessionid

integer

None.

userid

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "resultcode": 1,
  "resultstring": "sample string 2",
  "token": "sample string 3",
  "schoolid": 4,
  "sessionid": 5,
  "userid": 6
}

text/html

Sample:
{"resultcode":1,"resultstring":"sample string 2","token":"sample string 3","schoolid":4,"sessionid":5,"userid":6}

application/xml, text/xml

Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/smsapi.Models">
  <resultcode>1</resultcode>
  <resultstring>sample string 2</resultstring>
  <schoolid>4</schoolid>
  <sessionid>5</sessionid>
  <token>sample string 3</token>
  <userid>6</userid>
</ResultModel>