Search in sources :

Example 1 with OAuthInterface

use of com.googlecode.flickrjandroid.oauth.OAuthInterface in project glimmr by brk3.

the class GetAccessTokenTask method doInBackground.

@Override
protected OAuth doInBackground(String... params) {
    String oauthToken = params[0];
    String oauthTokenSecret = params[1];
    String verifier = params[2];
    Flickr f = FlickrHelper.getInstance().getFlickr();
    OAuthInterface oauthApi = f.getOAuthInterface();
    try {
        return oauthApi.getAccessToken(oauthToken, oauthTokenSecret, verifier);
    } catch (Exception e) {
        e.printStackTrace();
    }
    return null;
}
Also used : Flickr(com.googlecode.flickrjandroid.Flickr) OAuthInterface(com.googlecode.flickrjandroid.oauth.OAuthInterface)

Aggregations

Flickr (com.googlecode.flickrjandroid.Flickr)1 OAuthInterface (com.googlecode.flickrjandroid.oauth.OAuthInterface)1