def update_qq_api_request_data(data={}):
 defaults = {'openid': session.get('qq_openid'), 'access_token': session.get('qq_token')[0], 'oauth_consumer_key': QQ_APP_ID}
 defaults.update(data)
 return defaults

def update_qq_api_request_data ( data = { } ) : defaults = { 'openid' : session . get ( 'qq_openid' ) , 'access_token' : session . get ( 'qq_token' ) [ 0 ] , 'oauth_consumer_key' : QQ_APP_ID } defaults . update ( data ) return defaults
update some required parameters for oauth2 .