This API is hosted on Parse.com homepage
Authorization headers should be specified for each request.
Header | Value |
---|---|
X-Parse-Application-Id | app id |
X-Parse-REST-API-Key | key |
Content-Type | application/json |
Add new message
Name | Type |
---|---|
text | String |
latitude | Number |
longitude | Number |
{
"objectId": "zYHU0jTKrL",
"createdAt": "2014-11-06T21:39:59.304Z"
}
Get messages:
- By location and radius
- By parentId
- All
Name | Type |
---|---|
latitude | Number |
longitude | Number |
radius | Number |
parendId | String |
count | Number default: 50 |
{
"latitude": 60,
"longitude": 22,
"radius": 100000
}
{
"result": [{
"pubTime": 1415301813,
"parentId": "0",
"text": "hell yeah",
"longitude": 22.3049881,
"latitude": 60.476265,
"pubDelay": 0,
"objectId": "rIy2NdFz0a",
"createdAt": "2014-11-06T19:23:35.519Z",
"updatedAt": "2014-11-06T19:23:35.519Z",
"__type": "Object",
"className": "message"
},
{
"latitude": 60.46,
"longitude": 22.3048,
"parentId": "0",
"pubDelay": 0,
"pubTime": 1415305617,
"text": "another one",
"objectId": "iROWzlxJKf",
"createdAt": "2014-11-06T20:26:56.946Z",
"updatedAt": "2014-11-06T20:28:11.161Z",
"__type": "Object",
"className": "message"
}]
}
Get map point by projection
Name | Type |
---|---|
min_lat | Number |
max_lat | Number |
min_lon | Number |
max_lon | Number |
{
"result": [{
"longitude": 22.3049881,
"latitude": 60.476265,
"objectId": "rIy2NdFu0a",
"createdAt": "2014-11-06T19:23:35.519Z",
"updatedAt": "2014-11-06T19:23:35.519Z",
"__type": "Object",
"className": "message"
},
{
"latitude": 60.46,
"longitude": 22.3048,
"objectId": "iROWzlxJLf",
"createdAt": "2014-11-06T20:26:56.946Z",
"updatedAt": "2014-11-06T20:28:11.161Z",
"__type": "Object",
"className": "message"
}]
}