forked from wmorgan/heliotrope
-
Notifications
You must be signed in to change notification settings - Fork 1
Thread API
rakoo edited this page Jun 11, 2012
·
1 revision
GET /thread/XXX/info.json
where XXX is the id of the thread.
{
"subject": "[sup-talk] Cannot view old messages",
"date": 1301816891,
"participants": [
"Ruthard Baudach <rthrd@web.de>",
"Tero Tilus <tero@tilus.net>"
],
"direct_recipients": [
"sup-talk <sup-talk@rubyforge.org>",
"Sup users <sup-talk@rubyforge.org>"
],
"indirect_recipients": [],
"size": 2,
"thread_id": 2795,
"state": [],
"labels": [
"sup"
],
"snippet": "I've got a strange problem: I cannot view old messages in my mbox. This mbox is several years old, a",
"unread_participants": [],
"response": "ok"
}GET /thread/XXX.json
where XXX is the id of the thread.
{
"messageinfos": [
[
{
"subject": "[sup-talk] Cannot view old messages",
"date": 1301656465,
"from": "Ruthard Baudach <rthrd@web.de>",
"to": [
"sup-talk <sup-talk@rubyforge.org>"
],
"cc": [],
"has_attachment": false,
"loc": 61519065,
"state": [],
"labels": [
"sup"
],
"thread_id": 2795,
"snippet": "I've got a strange problem: I cannot view old messages in my mbox. This mbox is several years old, a",
"message_id": 2795
},
0
],
[
{
"subject": "Re: [sup-talk] Cannot view old messages",
"date": 1301816891,
"from": "Tero Tilus <tero@tilus.net>",
"to": [
"Sup users <sup-talk@rubyforge.org>"
],
"cc": [],
"has_attachment": false,
"loc": 61517810,
"state": [],
"labels": [
"sup"
],
"thread_id": 2795,
"snippet": "Ruthard Baudach, 2011-04-01 14:14: > I cannot view old messages in my mbox. Have you at some point b",
"message_id": 2794
},
1
]
],
"response": "ok"
}- A thread is accessible as an HTML page by querying the following resource:
GET /thread/XXX
where XXX is the id of the resource.