-
Notifications
You must be signed in to change notification settings - Fork 1
EightSQ edited this page Nov 25, 2017
·
3 revisions
Documentation of available server API hooks
-
GET
/locations/daily?date=<integer timestamp>
-
Parameters:
- string
userId
(Auth Header)
- string
-
Return:
- object
{ day: string , locations: [ { lat: float, long: float } ] }
- object
-
GET
/entries/by-location?date=23&lat=<float>&long=<float>
-
Parameters:
- string
userId
(Auth Header)
- string
-
Return:
- object
{ day: string , entries: [ { ip: string, timestamp: integer, uri: string } ] }
- object
-
GET
/stats/servers -
Parameters:
- string
userId
(Auth Header)
- string
-
Return:
- object
{ dataPoints: [ { timestamp: integer, serversVisited: integer } ] }
- object
-
GET
/stats/countries -
Parameters:
- string
userId
(Auth Header)
- string
-
Return:
- object
{ data: [ float ], color: [ string (Hex) ], labels: [ string ] }
- object
-
POST
/upload -
Parameters:
- object data
{ keys: Array, entries: Array }
- string
userId
(Auth Header)
- object data
-
Return:
- 204 No content – empty