def _load_client_secrets(filename):
 (client_type, client_info) = clientsecrets.loadfile(filename)
 if (client_type != clientsecrets.TYPE_WEB):
  raise ValueError('The flow specified in {} is not supported, only the WEB flow type  is supported.'.format(client_type))
 return (client_info['client_id'], client_info['client_secret'])

def _load_client_secrets ( filename ) : ( client_type , client_info ) = clientsecrets . loadfile ( filename ) if ( client_type != clientsecrets . TYPE_WEB ) : raise ValueError ( 'The flow specified in {} is not supported, only the WEB flow type  is supported.' . format ( client_type ) ) return ( client_info [ 'client_id' ] , client_info [ 'client_secret' ] )
loads client secrets from the given filename .