public ServiceRequest() { Method = HttpMethod.GET; BaseUri = "https://api.ciscospark.com/v1/"; AccessToken = null; Headers = new List <KeyValuePair <string, string> >() { new KeyValuePair <string, string>("Content-Type", "application/json"), new KeyValuePair <string, string>("User-Agent", UserAgent.Instance.Name), new KeyValuePair <string, string>("Webex-User-Agent", UserAgent.Instance.Name) }; QueryParameters = new List <KeyValuePair <string, object> >(); BodyParameters = new List <KeyValuePair <string, object> >(); Resource = ""; RootElement = ""; ClientHandler = new RestSharpClient(); }
public ServiceRequest() { Method = HttpMethod.GET; BaseUri = "https://api.ciscospark.com/v1/"; UserAgent = WebexSDK.UserAgent.Instance.Name; ContentType = "application/json"; AccessToken = null; Headers = new List <KeyValuePair <string, string> >() { new KeyValuePair <string, string>("Webex-User-Agent", WebexSDK.UserAgent.Instance.Name) }; QueryParameters = new List <KeyValuePair <string, string> >(); BodyParameters = new List <KeyValuePair <string, string> >(); Resource = ""; RootElement = ""; //Cisco Webex platform is dropping support for TLS 1.0 as of March 16, 2018 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11; ClientHandler = new SystemNetHttpClient(); }