Re: [twitter-dev] not authorized over and over again

2010-09-28 Thread Tom van der Woerdt
If you save those four keys, you should have everything you need to
restore the session.

If this does not work for you, make sure that you save the keys
properly. For example, you don't want to confuse oauth_token with
oauth_consumer_key.

Tom


On 9/28/10 12:39 AM, eMailaya wrote:
 Im developing a desktop application. firstly, the user needs to
 approve my app to let it access his account, enter the PIN code and
 retrieve his statuses and his followees' statuses, all is working
 fine.
 
 im closing my application and re-open it. now i already have his PIN
 code so im skipping the authorization part. i put the oauth_key and
 oauth_key_secret, the consumer_key and consumer_secret and ask for his
 statuses, this one works but when i want to retrieve his followees
 statuses i get unauthorized error. trying again causing the
 unauthorized error also for his statuses. the only way to solve this
 problem is to ask for an authorization everytime, this is annoying.
 
 also, i cant update the status for the same reason/error
 any idea what am i missing?
 thanks
 

-- 
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


[twitter-dev] not authorized over and over again

2010-09-27 Thread eMailaya
Im developing a desktop application. firstly, the user needs to
approve my app to let it access his account, enter the PIN code and
retrieve his statuses and his followees' statuses, all is working
fine.

im closing my application and re-open it. now i already have his PIN
code so im skipping the authorization part. i put the oauth_key and
oauth_key_secret, the consumer_key and consumer_secret and ask for his
statuses, this one works but when i want to retrieve his followees
statuses i get unauthorized error. trying again causing the
unauthorized error also for his statuses. the only way to solve this
problem is to ask for an authorization everytime, this is annoying.

also, i cant update the status for the same reason/error
any idea what am i missing?
thanks

-- 
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


Re: [twitter-dev] not authorized over and over again

2010-09-27 Thread John Kalucki
It sounds that, perhaps, you aren't recalculating the hash with the current
timestamp. You can't re-use hashes.

-John Kalucki
http://twitter.com/jkalucki
Twitter, Inc.



On Mon, Sep 27, 2010 at 3:39 PM, eMailaya a...@emailaya.com wrote:

 Im developing a desktop application. firstly, the user needs to
 approve my app to let it access his account, enter the PIN code and
 retrieve his statuses and his followees' statuses, all is working
 fine.

 im closing my application and re-open it. now i already have his PIN
 code so im skipping the authorization part. i put the oauth_key and
 oauth_key_secret, the consumer_key and consumer_secret and ask for his
 statuses, this one works but when i want to retrieve his followees
 statuses i get unauthorized error. trying again causing the
 unauthorized error also for his statuses. the only way to solve this
 problem is to ask for an authorization everytime, this is annoying.

 also, i cant update the status for the same reason/error
 any idea what am i missing?
 thanks

 --
 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


-- 
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