Skip to content
Dominik edited this page May 18, 2015 · 8 revisions

SERVER API

Replies:

{
  success: true|false,
  message: "details of reply (string)"
}

USERS

api/user/add

{
  token: "token string",
  mac: "{mac1,mac2,..}.",
}

api/user/list

{
  token: "token string",
  mac: "{mac1,mac2,..}.",
}
REPLY

Reply is extending of standard reply

{
  ...
  data: [
    {
      mac: "mac",
      time: 2015-04-24 17:39:27.818, // but I would prefer unix timestamp
      user: "fb user id"
    },
    {
      ...
    }
  ]
}

BEACONS

api/beacon/add

{
  token: "token string",
  event: "event id",
  description: "description",
  mac: "mac",
  name: "name
}

Clone this wiki locally