Search in sources :

Example 1 with RequestContext

use of com.googlecode.flickrjandroid.RequestContext in project glimmr by brk3.

the class FlickrHelper method getFlickrAuthed.

public Flickr getFlickrAuthed(String token, String secret) {
    Flickr f = getFlickr();
    RequestContext requestContext = RequestContext.getRequestContext();
    OAuth auth = new OAuth();
    auth.setToken(new OAuthToken(token, secret));
    requestContext.setOAuth(auth);
    return f;
}
Also used : OAuthToken(com.googlecode.flickrjandroid.oauth.OAuthToken) Flickr(com.googlecode.flickrjandroid.Flickr) RequestContext(com.googlecode.flickrjandroid.RequestContext) OAuth(com.googlecode.flickrjandroid.oauth.OAuth)

Aggregations

Flickr (com.googlecode.flickrjandroid.Flickr)1 RequestContext (com.googlecode.flickrjandroid.RequestContext)1 OAuth (com.googlecode.flickrjandroid.oauth.OAuth)1 OAuthToken (com.googlecode.flickrjandroid.oauth.OAuthToken)1