[twitter-dev] Re: oAuth Usage Question

2009-05-14 Thread sravanthisurya

Hi,

I am trying to build a code which tries to read the direct messages
and replies from the users account as he(user) gives the OAuth access
permissions to the application(without giving passwords).

I am using Twitter4j-2.0.3 version in jar. I saw that this does not
contain twitter.setAccessToken(accessToken); in its
file. But in http://yusuke.homeip.net/twitter4j/en/code-examples.html
author
suggested to use set AccessToken method to get account access

I am facing a problem in assigning stored(or say even for the first
time access) accessToken to twiiter object. I have found many
articles on OAuth using PHP, but could not find many methods for java
applications.

 Need suggestion on how to start.

Thanks in Adavance
Sravanthi.

On May 8, 11:36 pm, Abraham Williams 4bra...@gmail.com wrote:
 The token you get fromhttps://twitter.com/oauth/access_tokenis the users
 access token that you need to keep.



 On Thu, May 7, 2009 at 18:51, Gary gbre...@gmail.com wrote:

  Hello,

  I just want to be clear I've understood how the oAuth works, I have
  setup an oauth app on twitter and have enabled my twitter account on
  it.

  When I authenticate with twitter I can call
 http://twitter.com/statuses/friends_timeline.xml
  and get the timeline. However, if I try to execute that request again,
  I get a 401 unauthorized saying the token has expired.

  Is it a correct assumption that whenever I want to access
 http://twitter.com/statuses/friends_timeline.xmlthe user has to go
  through the An application would like to connect to your account
  process each time? If not what do I need to store to make requests on
  this resource without user interaction?

  I'm developing this in C# but any code sample would be handy,

  Gary

 --
 Abraham Williams |http://the.hackerconundrum.com
 Hacker |http://abrah.am|http://twitter.com/abraham
 Web608 | Community Evangelist |http://web608.org
 This email is: [ ] blogable [x] ask first [ ] private.
 Sent from Madison, WI, United States


[twitter-dev] Re: oAuth Usage Question

2009-05-08 Thread Abraham Williams
The token you get from https://twitter.com/oauth/access_token is the users
access token that you need to keep.

On Thu, May 7, 2009 at 18:51, Gary gbre...@gmail.com wrote:


 Hello,

 I just want to be clear I've understood how the oAuth works, I have
 setup an oauth app on twitter and have enabled my twitter account on
 it.

 When I authenticate with twitter I can call
 http://twitter.com/statuses/friends_timeline.xml
 and get the timeline. However, if I try to execute that request again,
 I get a 401 unauthorized saying the token has expired.

 Is it a correct assumption that whenever I want to access
 http://twitter.com/statuses/friends_timeline.xml the user has to go
 through the An application would like to connect to your account
 process each time? If not what do I need to store to make requests on
 this resource without user interaction?


 I'm developing this in C# but any code sample would be handy,


 Gary




-- 
Abraham Williams | http://the.hackerconundrum.com
Hacker | http://abrah.am | http://twitter.com/abraham
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Madison, WI, United States