def _GetRemoteAppId(url, throttle, oauth2_parameters, throttle_class=None):
 (scheme, host_port, url_path, _, _) = urlparse.urlsplit(url)
 secure = (scheme == 'https')
 throttled_rpc_server_factory = remote_api_throttle.ThrottledHttpRpcServerFactory(throttle, throttle_class=throttle_class)
 (app_id, server) = remote_api_stub.GetRemoteAppId(servername=host_port, path=url_path, auth_func=oauth2_parameters, rpc_server_factory=throttled_rpc_server_factory, secure=secure)
 return (app_id, server)

def _GetRemoteAppId ( url , throttle , oauth2_parameters , throttle_class = None ) : ( scheme , host_port , url_path , _ , _ ) = urlparse . urlsplit ( url ) secure = ( scheme == 'https' ) throttled_rpc_server_factory = remote_api_throttle . ThrottledHttpRpcServerFactory ( throttle , throttle_class = throttle_class ) ( app_id , server ) = remote_api_stub . GetRemoteAppId ( servername = host_port , path = url_path , auth_func = oauth2_parameters , rpc_server_factory = throttled_rpc_server_factory , secure = secure ) return ( app_id , server )
get the app id from the remote server .