OAuth DELETE LIST problem

瀏覽次數:0 次
跳到第一則未讀訊息

Wilfred yau

未讀,
2009年11月26日 晚上9:48:172009/11/26
收件者:Twitter Development Talk
Hello all,

When I call _method= DELETE in List API, I got 401 Unauthorized from
api.twitter.com.
After I read the document of OAuth, it mention that "_" is no need to
encode so it may be a another problem.
I have try when I using other parameter include "_" like
"a_method=DELETE" is work well and return 200 OK,
So, I wound it is the problem in server side?? I can't develop in my
twitter Client using Flex in FireFox more since this problem ,can any
twitter support team member help me to find out what is the problem??
or any people can success use _method as parameter in Oauth can
provide solution for me??
Thanks.

Wilfred

volker

未讀,
2009年12月14日 上午10:37:022009/12/14
收件者:Twitter Development Talk
i think your base String should look like this:

base:
DELETE&http%3A%2F%2Fstaging.xxxx.com%2Fapi%2Fmodel%xxxx%2Fcontroller
%2F2467&oauth_consumer_key%thekey%26oauth_nonce
%3D1429%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
%3D1260804448%26oauth_token%3Dtoken%26oauth_version%3D1.0

so you had to strip out _method=delete and send via POST but the
basestring must start with DELETE

maybe this helps

Volker

Abraham Williams

未讀,
2009年12月15日 下午6:11:302009/12/15
收件者:twitter-deve...@googlegroups.com
The proper method is with DELETE and no _method=delete. For environments where you can only make GETs and POSTs you can add _method=delete as a work around. 

That being said I've had issues with random lists being frozen and not deletable. I've heard a number of other people mention the same issue.

Abraham
--
Abraham Williams | Awesome Lists | http://bit.ly/sprout608
Project | Intersect | http://intersect.labs.poseurtech.com
Hacker | http://abrah.am | http://twitter.com/abraham
This email is: [ ] shareable [x] ask first [ ] private.
Sent from Madison, WI, United States

Matthew Terenzio

未讀,
2009年12月15日 下午6:19:572009/12/15
收件者:twitter-deve...@googlegroups.com
There MAY also be an issue with how a DELETE request is formed. Try putting the parameters in the query string if you aren't. That seemed to make it work for me when it wasn't.

Orian Marx (@orian)

未讀,
2009年12月22日 凌晨12:11:572009/12/22
收件者:Twitter Development Talk
There is a bug logged for this in the issue tracker. I can't get it
working with _method=DELETE either.
http://code.google.com/p/twitter-api/issues/detail?id=1239
回覆所有人
回覆作者
轉寄
0 則新訊息