def get_request_token(self, oauth_callback=None):

        self.log.debug('get_request_token(oauth_callback=%s):', oauth_callback)

        if oauth_callback is None:
            self._start_http_server()
            oauth_callback = self.auth_http_server.oauth_callback_url

        params = {
            'oauth_callback': oauth_callback,
        }

        token_data = self.do_request(self.REQUEST_TOKEN_URL, params)
        self.log.debug('Token data: %s', token_data)

        # Parse the token data
        request_token = self.parse_oauth_response(token_data)
        self.log.debug('Request token: %s', request_token)

        self.oauth.client.resource_owner_key = request_token['oauth_token']
        secret = request_token['oauth_token_secret']
        self.oauth.client.resource_owner_secret = secret
Requests a new request token.
dataset/ETHPy150Open onitu/onitu/drivers/flickr/onitu_flickr/flickrapi/auth.py/OAuthFlickrInterface.get_request_token