def get_access_token(self):

        if self.oauth.client.resource_owner_key is None:
            raise FlickrError('No resource owner key set, you probably forgot '
                              'to call get_request_token(...)')
        if self.oauth.client.verifier is None:
            raise FlickrError('No token verifier set, you probably forgot to '
                              'set %s.verifier' % self)
        if self.requested_permissions is None:
            raise FlickrError('Requested permissions are unknown.')

        content = self.do_request(self.ACCESS_TOKEN_URL)

        # parse the response
        access_token_resp = self.parse_oauth_response(content)
        secret = access_token_resp['oauth_token_secret']
        self.oauth_token = FlickrAccessToken(access_token_resp['oauth_token'],
                                             secret,
                                             self.requested_permissions,
                                             access_token_resp.get('fullname',
                                                                   ''),
                                             access_token_resp['username'],
                                             access_token_resp['user_nsid'])

        self.oauth.client.resource_owner_key = access_token_resp['oauth_token']
        self.oauth.client.resource_owner_secret = secret
        self.oauth.client.verifier = None

        return self.oauth_token
Exchanges the request token for an access token.
dataset/ETHPy150Open onitu/onitu/drivers/flickr/onitu_flickr/flickrapi/auth.py/OAuthFlickrInterface.get_access_token