-
Notifications
You must be signed in to change notification settings - Fork 0
fhd edited this page Jul 20, 2012
·
4 revisions
(Replace flurfunk-url with your own, localhost, port, etc)
Get all messages (this is limited to at most 200 right now):
GET http://flurfunk.example.com/messages
Get all messages since a certain timestamp:
GET http://flurfunk.example.com/messages?since=1316895441665
Get all messages before a certain timestamp:
GET http://flurfunk.example.com/messages?before=1316895441665
Get a specific number of messages:
GET http://flurfunk.example.com/messages?count=20
You can freely combind these parameters.
HTTP/1.1 200 OK
Content-Length: ???
Content-type: text/plain
Date: ???
<messages>
<message id="1" author="felix" timestamp="1316878519856" channels="Users">
Hello, Germany!
</message>
<message id="2" author="thomas" timestamp="1316878550804" channels="Users">
Hello, Norway!
</message>
</messages>
Get message by id:
GET http://flurfunk.example.com/message/13
HTTP/1.1 200 OK
Content-Length: ???
Content-type: text/plain
Date: ???
<message id="13" author="felix" timestamp="1316878754108" channels="Users">
Hello, World!
</message>
POST http://flurfunk.example.com/message
Content-Type: application/xml
<message author="felix" channels="Users">
Hello, World!
</message>
HTTP/1.1 200 OK
Content-Length: ???
Content-type: text/plain
Date: ???
http://flurfunk.example.com/message/:id