Add

Description

Register a CheckiIn of a user or dumb device in a Point of Interest.

URL

/VERSION/checkin/add.FORMAT

Available Format

JSON

HTTP Method

GET

Accepted Version

1

Requires

Authorization.

Headers

Recent Changes

  • Response contains user_id identifier.

Parameters

  • access_token: (Required) access_token to user resources.
  • poi: (Required)¬†POI on the identifier that is CheckIn.
  • device: (Optional)with the device identifier that is CheckIn. This is a mandatory parameter if the application can handle the physical devices of a user, the default option is disabled.
  • timestamp: (Optional)¬†CheckIn capture date, local time with UTC offset conversion capture the position.
    • datetime (AAAA-MM-DDThh:mm:sszzzzzz) en UTC,ISO standar 8601
    • ejemplo: 1997-07-16T10:30:15.342+03:00

Example

https://api.topoos.com/1/checkin/add.json?access_token=62f5280d-c954-4ee7-a0a8-68ff9c2810d8&poi=6548&timestamp=2012-12-05T13%3A10%3A50.842%2B0000

Reply
JSON example reply

{
    "id": 4,
    "device_id": 1,
    "user_id":"00429846-8a7f-46cb-b354-525e0ac83dce",
    "poi_id": 6548,
    "register_time": "2012-12-05T13:17:14.488+00:00",
    "timestamp": "2012-12-05T13:10:50.842+00:00"
}