This project has moved. For the latest updates, please go here.

Reusing access token

Topics: Developer Forum
Sep 5, 2014 at 6:47 PM
I'm having trouble reusing an access token that I have already generated for a desktop application that I have created.

Once I have an OAuthAccessToken from the user how do I store it or what components of it should I store? Am I storing information from the Flickr class or the OAuthAccessToken class or both or neither?

How do I reuse that token and token secret the next time I run the application?

I'm having no problem authenticating a user, just a problem with reusing what I have gathered from the user.

Thank you!
Sep 8, 2014 at 9:00 AM
Please have a look at the sample programs:

Each contains a class called FlickrManager which gives an illustrated example of how you might want to store the auth token and create a new authenticated Flickr instance. You can store the values anywhere you want (e.g. a database, or a txt file etc) however.