mod_rest/README.markdown
changeset 3804 cfa00eea896f
parent 3801 ed5d7586a61e
child 3805 d59fb4dcf100
equal deleted inserted replaced
3803:a1f1f703d604 3804:cfa00eea896f
    95 <message type="chat">
    95 <message type="chat">
    96 <body>Yes, this is bot</body>
    96 <body>Yes, this is bot</body>
    97 </message>
    97 </message>
    98 ```
    98 ```
    99 
    99 
       
   100 ## Payload format
       
   101 
       
   102 ``` {.xml}
       
   103 <message type="" id="" to="" from="" xml:lang="">
       
   104 ...
       
   105 </message>
       
   106 ```
       
   107 
       
   108 An XML declaration (`<?xml?>`) **MUST NOT** be included.
       
   109 
       
   110 The payload MUST contain one (1) `message`, `presence` or `iq` stanza.
       
   111 
   100 # Compatibility
   112 # Compatibility
   101 
   113 
   102 Requires Prosody trunk / 0.12
   114 Requires Prosody trunk / 0.12