h4. Status
What's the status of the session
h5. GET /api/status
----
h4. Login
Create a session
h5. POST /api/login
token=API_TOKEN
----
h4. Logout
Destroy current session
h5. GET /api/logout
----
h4. Get Messages
Gets the 40 most recent messages in the user's mailbox
h5. GET /api/get_msgs
Woohoo - got through the rest of the slides quite quickly. I can go home now.
----
h4. Wait for Messages
Waits up to 5 minutes for a new message to appear in the User's mailbox... Long Polling
h5. GET /api/wait_for_msgs
Woohoo - got through the rest of the slides quite quickly. I can go home now.
----
h4. Send Message
Sends a message
h5. 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
----
h4. Get Following
Gets all the users that the current user is following
h5. GET /api/get_following
----
h4. Get Followers
Gets all the users that follow the current user
h5. GET /api/get_followers
----
h4. Follow
Start following another user
h5. POST /api/follow
user=id_of_user
----
h4. Unfollow
Stop following another user
h5. POST /api/unfollow
user=id_of_user
----
h4. All Users
List all users in the system
h5. GET /api/all_users
----
h4. Get Tag Cloud
Gets the tags and words for the tag cloud
h5. GET /api/get_tagcloud
numTags=optional_no_of_tags
----
h4. Get Tracking
Gets the list of items the user is tracking
h5. GET /api/get_tracking
----
h4. Add Tracking
Adds a tracking item
h5. POST /api/add_tracking
track=text_of_thing_to_track
----
h4. Remove Tracking
Removes the tracking item
h5. POST /api/remove_tracking
trackid=id_of_tracking_item
----
h4. Get Conversation
Gets all the messages in a conversation
h5. GET /api/get_conversation
conversationid=Conversation_id
----
h4. Get Actions
Gets the actions
h5. GET /api/get_actions
----
h4. Add Action
Adds an Action
h5. POST /api/add_action
name=name_of_action
test=test_that_triggers_action
action=action_to_take
----
h4. Enable Action
Enables or Disables an Action
h5. POST /api/enable_action
id=action_id
enabled=true\|false
----
h4. Delete Action
Deletes an Action
h5. POST /api/delete_action
actionid=action_id