Skip to content
timojaask edited this page Jun 29, 2014 · 6 revisions

API Base URL

http://whispr.outi.me/api/

JSON message object

  • 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

More info and examples

add_json

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

More info and examples

get_local_whispers

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

More info and examples

get_latest

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

More info and examples

get_servertime

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

More info and examples