Developer:MessagesResource

From myExperiment
Jump to: navigation, search

Index of messages

Implemented - missing documentation.


Create message

Planned.


Read message

URL: GET http://www.myexperiment.org/message.xml?id=26

Example output:

<?xml version="1.0" encoding="UTF-8" ?> 
<message uri="http://www.myexperiment.org/message.xml?id=26" resource="http://www.myexperiment.org/messages/26">
  <body>The 5th of November</body> 
  <created-at>Mon Nov 05 20:38:01 +0000 2007</created-at> 
  <from uri="http://www.myexperiment.org/user.xml?id=16" resource="http://www.myexperiment.org/users/16">David De Roure</from> 
  <to uri="http://www.myexperiment.org/user.xml?id=22" resource="http://www.myexperiment.org/users/22">Don Cruickshank</to> 
  <read-at>Tue Dec 11 18:01:14 +0000 2007</read-at> 
  <reply-id/> 
  <subject>remember remember</subject> 
</message>


Update message

Planned.


Delete message

Planned.


Elements for message

  • id - the id of the message
  • body - the main body of the message
  • created-at - the date/time the message was created (sent)
  • from - the sending user of the message
  • to - the receiving user of the message
  • read-at - the date/time the receiving user opened the message
  • reply-id - the id of the message that this message is a reply to
  • subject - the subject of the message