List creation updated (needs description param)

2 views
Skip to first unread message

David

unread,
Nov 18, 2009, 6:57:41 PM11/18/09
to Twitter Development Talk
I've been using the List api in my app, and just noticed that the POST
method to /:user/lists.:format returned the correct response, but
didn't actually create a list.

I've been following this api document: http://apiwiki.twitter.com/Twitter-REST-API-Method:-POST-lists

What I did notice was that the Add New List ui on Twitter.com has a
description field, and so I tried the same call with an additional
post param "description", and it worked.

The description param can be empty, but it is required to make this
call work. Might be a bug?

Just a heads up for anyone who might be wondering.

DC

Marcel Molina

unread,
Nov 18, 2009, 8:08:28 PM11/18/09
to twitter-deve...@googlegroups.com
The description parameter is not required to create a list.
--
Marcel Molina
Twitter Platform Team
http://twitter.com/noradio

Naveen

unread,
Nov 18, 2009, 11:13:23 PM11/18/09
to Twitter Development Talk
We are seeing this issue as well..

We create a list with:
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-POST-lists

This is returning all valid data with an id for the list, which
indicates it was successfully created..

However when we try to get status for the list it is returning 404

Then we try to get the lists using

http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-GET-lists

And it is not returned in the result, the newly created list is also
not on the twitter website..

however if we include the description parameter(with empty content)
the list is created and returns expected data and does show up on the
twitter website..



There is a bug here... The work around is to just include an empty
description field, which should not break anything in the future
either.

Rich

unread,
Nov 19, 2009, 1:44:33 AM11/19/09
to Twitter Development Talk
I can confirm this too, the lists are not being created without a
description

Nelu Lazar

unread,
Nov 19, 2009, 9:31:53 AM11/19/09
to Twitter Development Talk
I confirm this behavior, but I just added the "description" field to
the input form and it works like a charm. And I find it useful as
well.

- @NeluLazar

Tim Haines

unread,
Nov 20, 2009, 11:42:28 PM11/20/09
to twitter-deve...@googlegroups.com, Marcel Molina
Hey Marcel,

This is indeed a bug.  When you try and create a list without a description, the API returns a status code of 200, and what looks like a successful response.  However, the list is not fully created, and is not visible on twitter.com.  If you then make the same creation call with a description added, the list becomes visible on twitter.com.

I tested this with curl and basic authentication 10 minutes ago.

Tim.

Sumit Khanna

unread,
Nov 19, 2009, 10:08:44 PM11/19/09
to Twitter Development Talk
I can confirm this. I've tried using twitter-async (PHP) and curl.
They return XML or a JSON indicating a successful complete when trying
to create a list, but no list is created unless I add a description
variable.

Note, this only started happening this week! Earlier this week I used
the exact same code and it created a list fine. Something must have
changed this week.

Sumit

Marcel Molina

unread,
Nov 24, 2009, 3:28:56 PM11/24/09
to twitter-deve...@googlegroups.com
The list API requiring a parameter to create/update a list has been fixed and should be deployed today or tomorrow. Thanks everyone who reported this. Sorry about that...

On Wed, Nov 18, 2009 at 3:57 PM, David <dch...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages