Robert,

That's definitely inconsistent, but it's an inconsistency that many
Twitter client libraries have come to expect from the current version
of the Twitter API.  I'll be saying this a lot from now on, but this
is something we'll be resolving in the next version of the API.  Rest
assured, these inconsistencies make me cringe.

On Sun, Oct 5, 2008 at 8:54 AM, Xperimental <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> While writing the Api for my client I came across an inconsistency in
> the XML API and I would like to ask, if this is deliberate or
> accidental.
>
> The API documentation suggests to use the "since_id" parameter to
> lessen the load on the servers. That worked fine when using the
> "friends_timeline" method (XML URL: 
> http://twitter.com/statuses/friends_timeline.xml),
> but when I tried using it for the direct_messages feed (http://
> twitter.com/direct_messages.xml), I got an unexpected result, when I
> requested the feed with a "since_id" parameter that generated an empty
> list of responses.
>
> The friends_timeline returns an empty array with the right tag
> (although it is not quite correctly formed), as expected:
> <statuses type="array"></statuses>
>
> But the direct_messages method uses a totally different tag (again not
> correctly formed):
> <nilclasses type="array"></nilclasses>
>
> I would have expected the following result:
> <direct-messages type="array" />
> or
> <direct-messages type="array"></direct-messages>
>
> Thanks for looking into this.
>
> -Robert
>



-- 
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x

Reply via email to