timeclock.location

Clockin location management.

SUPPORTED METHODS:

CREATE

ParametersTypeDescription
token (required)Valid token
name (required)varcharLocation name
type (required)enum (1, 2)1: Computer
2: IP address
ip (required)varcharIP address
description (accepted)varcharDescription

DELETE

ParametersTypeDescription
token (required)Valid token
id (required)integerLocation id
type (accepted)integerLocation type

GET

ParametersTypeDescription
token (required)Valid token

DOCUMENTATION

GET
Level 7 required

Example Request:

{
   "module":"timeclock.location",
   "method":"GET",
   "request":{
   }
}

Example response:

{
  "status": 1,
  "data": [
    {
      "id": "73259",
      "store": "202039",
      "user": "2097936",
      "name": "TC Location  IP",
      "description": "",
      "status": "1",
      "type": "2",
      "ip": "82.117.214.54"
    },
    {
      "id": "74020",
      "store": "202039",
      "user": "2097936",
      "name": "Test Terminal",
      "description": "",
      "status": "1",
      "type": "1",
      "ip": "82.117.214.54"
    },
    {
      "id": "77846",
      "store": "202039",
      "user": "2097936",
      "name": "fff",
      "description": "",
      "status": "1",
      "type": "1",
      "ip": "82.117.214.54"
    },
    {
      "id": "78384",
      "store": "202039",
      "user": "2097936",
      "name": "Station Test",
      "description": "",
      "status": "1",
      "type": "1",
      "ip": "82.117.214.54"
    },
    {
      "id": "79587",
      "store": "202039",
      "user": "2097936",
      "name": "Test 1222",
      "description": "",
      "status": "1",
      "type": "1",
      "ip": "82.117.214.54"
    }
  ],
  "token": "xxxxxxx"
}

CREATE
Level 3 is required.

--
Example Request:

{
   "module":"timeclock.location",
   "method":"CREATE",
   "request":{
      "name":"Testing",
      "ip":"xxx.xxx.xx.x",
      "type":"2",
      "description":"Testing locations"
   }
}

Example Response:

{
   "status":1,
   "data":"Location added",
   "token":"xxxxxxx"
}

DELETE
Delete clock in/out location.
Level 3 is required.

--
Example Request:

{
   "module":"timeclock.location",
   "method":"DELETE",
   "request":{
      "id":123456
   }
}

Example Response:

{
   "status":1,
   "data":"Location removed",
   "token":"xxxxxxx"
}