public async Task <List <NATEndpoint> > LookupEndpoints(TempSessionWithSecrets userSession, string targetSession) { var natPunchthroughApi = new NATPunchthroughApi(); natPunchthroughApi.Configuration.ApiKey["api_key"] = userSession.ApiKey; return(await natPunchthroughApi.EndpointsGetAsync(targetSession)); }
public async Task<List<NATEndpoint>> LookupEndpoints(TempSessionWithSecrets userSession, string targetSession) { var natPunchthroughApi = new NATPunchthroughApi(); natPunchthroughApi.Configuration.ApiKey["api_key"] = userSession.ApiKey; return await natPunchthroughApi.EndpointsGetAsync(targetSession); }