Exemple #1
0
        // Get API client
        public static ServiceStack.JsonHttpClient GetClient(TimeSpan Timeout)
        {
            var IvaClient = new ServiceStack.JsonHttpClient(IvaAPI);

            if (IvaAPI.Contains("free"))
            {
                IvaClient.SetCredentials("EE2dev", "^#!jJ=u920#{./P");
            }

            var c = IvaClient.GetHttpClient();

            c.Timeout = Timeout;
            return(IvaClient);
        }