public void SetupCommonConfiguration() { _configuration = RestConfiguration.JsonDefault(); _configuration.WithHeader("User-Agent", "RestFluencing Sample"); _configuration.WithBaseUrl("https://api.github.com/"); _configuration.WithBasicAuthorization("<username>", "<password>"); }
public void SetupCommonConfiguration() { _configuration = RestConfiguration.JsonDefault(); _configuration.WithHeader("User-Agent", "RestFluencing Sample"); _configuration.WithBaseUrl("https://api.github.com/"); ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; }
public void SetupCommonConfiguration() { _configuration = RestConfiguration.JsonDefault(); _configuration.WithHeader("User-Agent", "RestFluencing Sample"); _configuration.WithBaseUrl("https://api.github.com/"); }