-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Reference
timojaask edited this page Jun 29, 2014
·
6 revisions
- id: Message ID
- latitude: Latitude part of message location coordinate
- longitude: Longitude part of message location coordinate
- text: Message text
- pubTime: Message publishing time expressed as Unix timestamp
Add new message to the database.
-
URL:
http://whispr.outi.me/api/add_json
- Method: Post
- Arguments: Message object
- Return value: The ID of the new message
Get 50 latest messages from a given area.
-
URL:
http://whispr.outi.me/api/get_local_whispers
- Method: Get
-
Arguments:
- min_lat: Minimum latitude of the message coordinate
- max_lat: Maximum latitude of the message coordinate
- min_long: Minimum longitude of the message coordinate
- max_long: Maximum longitude of the message coordinate
- json: If set to 1, the result will be returned as JSON object, otherwise as HTML table
- timestamp: Unix timestamp. If specified, only messages newer or same as the timestamp will be returned
- Return value: List of messages either as JSON or a HTML table
Get latest messages from the entire world.
-
URL:
http://whispr.outi.me/api/get_latest
- Method: Get
-
Arguments:
- count: The number of messages to return
- json: If set to 1, the result will be returned as JSON object, otherwise as HTML table
- timestamp: Unix timestamp. If specified, only messages newer or same as the timestamp will be returned
- Return value: List of messages either as JSON or a HTML table
Get the current server time.
-
URL:
http://whispr.outi.me/api/get_servertime
- Method: Get
- Arguments: None
- Return value: Returns Unix timestamp for the current server time