Bug #17644 [Opn->Asn]: Adding/Removing list members
| From: | hostmaster at shupp dot org | Date: | Sun, 29 Aug 2010 00:30:40 +0000 |
| Subject: | Bug #17644 [Opn->Asn]: Adding/Removing list members | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-4704@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=17644&edit=1
ID: 17644
Updated by: hostmaster@shupp.org
Reported By: pear at jondale dot net
Summary: Adding/Removing list members
-Status: Open
+Status: Assigned
Type: Bug
Package: Services_Twitter
Operating System: CentOS 5.4
Package Version: 0.6.1
PHP Version: 5.3.2
-Assigned To:
+Assigned To: shupp
Roadmap Versions:
New Comment:
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: shupp
Previous Comments:
------------------------------------------------------------------------
[2010-07-30 20:27:41] serp
Description:
------------
Using OAuth for authentication.
Trying to add or remove members to a list results in a "400 Bad
Request" with the message "You must specify a member".
I can list members of a list just fine (if I manually add them from
the twitter website).
Test script:
---------------
$t = new Services_Twitter;
$oauth = new
HTTP_OAuth_Consumer($consumer_key,$consumer_secret,$auth_token,$auth_secret);
$t->setOAuth($oauth);
/*
Assuming that my screen name is my_screen_name, 6253282 is the id of a
user i want to add, and that test-list is a list that i have already
created and can view by going to
http://twitter.com/my_screen_name/test-list
*/
$r = $t->list_members->create( array('user'=>'my_screen_name',
'list_id'=>'test-list', 'id' => 6253282) );
Expected result:
----------------
I expected it to add the user as a member of the list test-list.
Actual result:
--------------
400 Bad Request
You must specify a member
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17644&edit=1