def GetLogUrls(opener, api_host):
 (start_timestamp, end_timestamp) = _GetTimestamps()
 logging.info(('time range %s => %s' % (datetime.datetime.fromtimestamp(start_timestamp).strftime('%Y-%m-%d %H:%M:%S'), datetime.datetime.fromtimestamp(end_timestamp).strftime('%Y-%m-%d %H:%M:%S'))))
 request_dict = {'user_id': options.options.user_id, 'start_timestamp': start_timestamp, 'end_timestamp': end_timestamp}
 if options.options.filter:
  request_dict['filter'] = options.options.filter
 response_dict = admin_api.ServiceRequest(opener, api_host, 'list_client_logs', request_dict)
 return response_dict['log_urls']

def GetLogUrls ( opener , api_host ) : ( start_timestamp , end_timestamp ) = _GetTimestamps ( ) logging . info ( ( 'time range %s => %s' % ( datetime . datetime . fromtimestamp ( start_timestamp ) . strftime ( '%Y-%m-%d %H:%M:%S' ) , datetime . datetime . fromtimestamp ( end_timestamp ) . strftime ( '%Y-%m-%d %H:%M:%S' ) ) ) ) request_dict = { 'user_id' : options . options . user_id , 'start_timestamp' : start_timestamp , 'end_timestamp' : end_timestamp } if options . options . filter : request_dict [ 'filter' ] = options . options . filter response_dict = admin_api . ServiceRequest ( opener , api_host , 'list_client_logs' , request_dict ) return response_dict [ 'log_urls' ]
calls into the admin api to get log urls for the user .