sharedmemory.org will eventually have several different API's that will each be suitable for different types of applications as well as developers at different levels. For obvious reasons, the first API we are making available is the simplest possible API based purely on HTTP requests that can easily be scripted using tools such as curl.
Simple API
The simple API is accessed using HTTP requests towards http://sharedmemory.org/api/simple/. Each request must be an HTTP POST request with the users credentials given as username and password in the POST data. The response from each request will begin with OK (Message) or ERR(Message). The following requests are currently available.
Add
The add method adds a new item to the users inbox and is accessed at http://sharedmemory.org/api/simple/add. Besides the authentication credentials, this request must also contain a post field called data. This will be the actual data for the item being added. It can optionally also have a field called application as well as local_timestamp (unix timestamp int the form of a long value) and local_timezone (minutes from utc in the form of an integer).
|