Original API

Status

What's the status of the session

GET /api/status

               


Login

Create a session

POST /api/login

token=API_TOKEN


Logout

Destroy current session

GET /api/logout

Get Messages

Gets the 40 most recent messages in the user's mailbox

GET /api/get_msgs

                                                                Woohoo - got through the rest of the slides quite quickly. I can go home now.                                        


Wait for Messages

Waits up to 5 minutes for a new message to appear in the User's mailbox... Long Polling

GET /api/wait_for_msgs

                                                                Woohoo - got through the rest of the slides quite quickly. I can go home now.                                        


Send Message

Sends a message

POST /api/send_msg

message=messagebody

via=optional_name_of_client

tags=optional_comma_delimitted_tags

metadata=optional_XML_Element_data

replyto=optional_id_of_message


Get Following

Gets all the users that the current user is following

GET /api/get_following

       


Get Followers

Gets all the users that follow the current user

GET /api/get_followers

       


Follow

Start following another user

POST /api/follow

user=id_of_user


Unfollow

Stop following another user

POST /api/unfollow

user=id_of_user


All Users

List all users in the system

GET /api/all_users

       


Get Tag Cloud

Gets the tags and words for the tag cloud

GET /api/get_tagcloud

numTags=optional_no_of_tags

                                               


Get Tracking

Gets the list of items the user is tracking

GET /api/get_tracking

               


Add Tracking

Adds a tracking item

POST /api/add_tracking

track=text_of_thing_to_track


Remove Tracking

Removes the tracking item

POST /api/remove_tracking

trackid=id_of_tracking_item


Get Conversation

Gets all the messages in a conversation

GET /api/get_conversation

conversationid=Conversation_id

                                                                       


Get Actions

Gets the actions

GET /api/get_actions

       


Add Action

Adds an Action

POST /api/add_action

name=name_of_action

test=test_that_triggers_action

action=action_to_take


Enable Action

Enables or Disables an Action

POST /api/enable_action

id=action_id

enabled=true|false


Delete Action

Deletes an Action

POST /api/delete_action

actionid=action_id