private OAuth1RequestToken constructToken ( Response response ) { Element authElement = response . getPayload ( ) ; String oauthToken = XMLUtilities . getChildValue ( authElement , "oauth_token" ) ; String oauthTokenSecret = XMLUtilities . getChildValue ( authElement , "oauth_token_secret" ) ; OAuth1RequestToken token = new OAuth1RequestToken ( oauthToken , oauthTokenSecret ) ; return token ; }
Construct a Access Token from a Flickr Response .