[twitter-dev] Switch to OAuth - How to

2010-09-06 Thread Donglt
I'm a web developer, I've made a module that shows up tweets on site.
The module uses Twitter basic auth, means user, whom uses my module in
his site, have to input his Twitter username and password in the
module configuration. But with OAuth, does he have to register the
module with Twitter app to get Comsumer Key and Secret instead of
username  password? How can he use username  pw as currently?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Switch to OAuth - How to

2010-09-06 Thread Tom van der Woerdt
On 9/6/10 4:56 AM, Donglt wrote:
 I'm a web developer, I've made a module that shows up tweets on site.
 The module uses Twitter basic auth, means user, whom uses my module in
 his site, have to input his Twitter username and password in the
 module configuration. But with OAuth, does he have to register the
 module with Twitter app to get Comsumer Key and Secret instead of
 username  password? How can he use username  pw as currently?
 

I strongly recommend against this and I don't think that Twitter would
allow it anyway. But, for your information, you would use xAuth for this.

But, like I said: it won't be allowed. Just do the OAuth dance like any
other application is supposed to do :-)

Tom

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Switch to OAuth - How to

2010-09-06 Thread Le Thanh Dong
Thanks for the reply, but I want to get tweets via friend timeline. Since
Twitter switch to OAuth, I can not do this so far.

2010/9/6 Tom van der Woerdt i...@tvdw.eu

 On 9/6/10 4:56 AM, Donglt wrote:
  I'm a web developer, I've made a module that shows up tweets on site.
  The module uses Twitter basic auth, means user, whom uses my module in
  his site, have to input his Twitter username and password in the
  module configuration. But with OAuth, does he have to register the
  module with Twitter app to get Comsumer Key and Secret instead of
  username  password? How can he use username  pw as currently?
 

 I strongly recommend against this and I don't think that Twitter would
 allow it anyway. But, for your information, you would use xAuth for this.

 But, like I said: it won't be allowed. Just do the OAuth dance like any
 other application is supposed to do :-)

 Tom

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en




-- 
Mr. Le Thanh Dong
Developer
==
J.O.O.M SOLUTIONS CO., Ltd
8 Floor - Ho Chi Minh Museum Office Building 249AThuy Khue - Tay Ho District
- Hanoi, Vietnam
Cel: 093-4646-456 - Tel: (84 4) 62584126 -62584138 (ext: 133)- Fax(844)
62584136
Email: don...@joomsolutions.com

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Switch to OAuth - How to

2010-09-06 Thread Julio Biason
On Mon, Sep 6, 2010 at 12:13 PM, Le Thanh Dong mr.thanhd...@gmail.com wrote:
 Thanks for the reply, but I want to get tweets via friend timeline. Since
 Twitter switch to OAuth, I can not do this so far.

If the account is public, you can unauthenticated request the home_timeline.

If the account is private, then, unfortunately, you'll have to
register your app to get a app secret and token and, at least once,
request the authorization for that app in the account. Once you get
the authorization token, you can use it indefinitely (or till Twitter
revokes it, but they don't have a timeout at this time.)

-- 
Julio Biason julio.bia...@gmail.com
Twitter: http://twitter.com/juliobiason

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en