Well, I accidentally sent that message so let me finish here...
<batch_reply>
<friends_timeline>
<status>...</status>
<status>...</status>
<status>...</status>
<status>...</status>
</friends_timeline>
<replies>
<status>...</status>
<status>...</status>
</replies>
<direct_messages>
<direct_message>...</direct_message>
<direct_message>...</direct_message>
<direct_message>...</direct_message>
</direct_messages>
</batch_reply>
This would probably mostly benefit client applications as it would allow
us to consolidate 3 requests into one, allowing us to poll more often
for these pieces of data that people are interested in as being the most
real-time.
I think this would be a great candidate for fast-track implementation as
it could sit on top of whatever internal code serves the existing feeds
just adding the wrapper before returning the data. Also, it would be at
new URI so it would not be changing existing interfaces for current
applications.
Josh
Joshua Perry wrote:
> And now something perhaps a little more sane and do-able.
>
> It would be very useful to have a batch request API that would allow
> requesting multiple datasets simultaneously.
>
> Something like this:
>
> http://twitter.com/batch_request.xml?friend_timeline_since_id=2345&replies_since_id=5366&direct_messages_since_id=45858
>
>
>
> And this would return the data in the same format as the current REST
> api for the individual feeds but in a top-level container:
>
> <batch_reply>
> <friends_timeline>
> <status>...</status>
> <status>...</status>
> <status>...</status>
> <status>...</status>
> </friends_timeline>
> <direct_messages>
> <direct_message>...</direct_message>
> <direct_message>...</direct_message>
> <direct_message>...</direct_message>
> </direct_messages>
> </batch_reply>
>