Hi,

I'm trying to add user to a list via List API. I am using OAuth
authentication, and other list APIs worked perfectly with OAuth.
I tried Get lists, Post lists, Delete list id... in same way. And they
just work great.
By the way.. whenever I try 'Post List members' API via OAuth, and it
keeps saying 401 error.

Followings are what I've tried and got from twitter. I am tried to add
user '55925738' to list named 'another' of 'tweettimetest'.

I used 'http://api.twitter.com/1/tweettimetest/another/members.json'
to add user. And its parameter was list_id, and id.
Did I do something wrong? Is there anyone who have similar issues?




POST /1/tweettimetest/another/members.json?id=55925738 HTTP/1.1
Host: api.twitter.com
User-Agent: TweetTime/2.3 CFNetwork/459 Darwin/10.2.0
X-Twitter-Client: TweetTime
X-Twitter-Client-Version: 2.2
X-Twitter-Client-Url: http://caizer.com
Authorization: OAuth realm="",
oauth_consumer_key="r***********************",
oauth_token="86***********************", oauth_signature_method="HMAC-
SHA1", oauth_signature="KC***********************",
oauth_timestamp="1267207930", oauth_nonce="4***********************",
oauth_version="1.0", oauth_verifier="22********80"
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 17
Connection: keep-alive

?source=TweetTimeHTTP/1.1 401 Unauthorized
Date: Fri, 26 Feb 2010 18:12:11 GMT
Server: hi
WWW-Authenticate: Basic realm="Twitter API"
Status: 401 Unauthorized
Content-Type: application/json; charset=utf-8
Cache-Control: no-cache, max-age=300
Set-Cookie: guest_id=1267207932049; path=/
Set-Cookie:
_twitter_sess=***********************o6Rmxhc2g6OkZ***********************253D--1164b91ac812d85***********************4;
domain=.twitter.com; path=/
Expires: Fri, 26 Feb 2010 18:17:11 GMT
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 110
Connection: close




POST /1/tweettimetest/another/members.json?list_id=another&?
id=55925738 HTTP/1.1
Host: api.twitter.com
User-Agent: TweetTime/2.3 CFNetwork/459 Darwin/10.2.0
X-Twitter-Client: TweetTime
X-Twitter-Client-Version: 2.2
X-Twitter-Client-Url: http://caizer.com
Authorization: OAuth realm="",
oauth_consumer_key="r***********************",
oauth_token="86***********************", oauth_signature_method="HMAC-
SHA1", oauth_signature="KC***********************",
oauth_timestamp="1267207930", oauth_nonce="4***********************",
oauth_version="1.0", oauth_verifier="22********80"
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 17
Connection: keep-alive

?source=TweetTimeHTTP/1.1 401 Unauthorized
Date: Fri, 26 Feb 2010 18:18:11 GMT
Server: hi
Status: 401 Unauthorized
WWW-Authenticate: Basic realm="Twitter API"
Content-Type: application/json; charset=utf-8
Cache-Control: no-cache, max-age=300
Set-Cookie:
_twitter_sess=***********************o6Rmxhc2g6OkZ***********************253D--1164b91ac812d85***********************4;
domain=.twitter.com; path=/
Expires: Fri, 26 Feb 2010 18:23:11 GMT
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 122
Connection: close





POST /1/tweettimetest/another/members.json HTTP/1.1
Host: api.twitter.com
User-Agent: TweetTime/2.3 CFNetwork/459 Darwin/10.2.0
X-Twitter-Client: TweetTime
X-Twitter-Client-Version: 2.2
X-Twitter-Client-Url: http://caizer.com
Authorization: OAuth realm="",
oauth_consumer_key="r***********************",
oauth_token="86***********************", oauth_signature_method="HMAC-
SHA1", oauth_signature="KC***********************",
oauth_timestamp="1267207930", oauth_nonce="4***********************",
oauth_version="1.0", oauth_verifier="22********80"
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 17
Connection: keep-alive

?source=TweetTimeHTTP/1.1 400 Bad Request
Date: Fri, 26 Feb 2010 18:22:25 GMT
Server: hi
X-Transaction: 1267208545-10948-19469
Status: 400 Bad Request
Last-Modified: Fri, 26 Feb 2010 18:22:25 GMT
X-Runtime: 0.05457
Content-Type: application/json; charset=utf-8
Pragma: no-cache
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-
check=0
Expires: Tue, 31 Mar 1981 05:00:00 GMT
X-Revision: DEV
Set-Cookie: guest_id=1267208545521; path=/
Set-Cookie: lang=en; path=/
Set-Cookie:
_twitter_sess=***********************o6Rmxhc2g6OkZ***********************253D--1164b91ac812d85***********************4;
domain=.twitter.com; path=/
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 96
Connection: close

Reply via email to