Advertisement
Guest User

nathan

a guest
Feb 1st, 2011
830
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. Mark Mail - hacky API
  2.  
  3. mode=json,xml
  4.  
  5. result.xqy - search results
  6. uses markmail's normal uri syntax, q component is query string url encoded, eg:
  7. http://markmail.org/results.xqy?q=from:nathan%40webr3.org%20list:org.w3.public-lod&page=1&mode=json&id=
  8. paging can be found in the results (pages), and swap page param in uri for the page (1,2,3 etc)
  9.  
  10. each item in results has an "id" (message id) and a thread_id (doh):
  11. "id":"5wfms7w5opja4a2y","thread_id":"dcue2bsyrsgbzsd5"
  12.  
  13. to get a message:
  14. http://markmail.org/message.xqy?id=5wfms7w5opja4a2y&mode=json
  15.  
  16. to get a thread:
  17. http://markmail.org/thread.xqy?id=dcue2bsyrsgbzsd5&mode=json
  18.  
  19. that's all you need to get anything from markmail.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement