public bool ListClients()
        {
            try
            {
                var oauth = new EngagementHistoryAPIProject.Manager();
                oauth["consumer_key"]    = "Your App Key From LiveEngage";
                oauth["consumer_secret"] = "Your Secret From LiveEngage";
                oauth["token"]           = "Your Access Token From LiveEngage";
                oauth["token_secret"]    = "Your Access Token Secret From LiveEngage";

                var authzHeader = oauth.GenerateAuthzHeader(appUrl, "POST");
                var request     = (HttpWebRequest)WebRequest.Create(appUrl);
                request.Method = "POST";
                request.Headers.Add("Authorization", authzHeader);

                request.ContentType = "application/json";
                string interaction = "{\"start\":{\"from\":1433140200000,\"to\":1435645800000}}";
                using (StreamWriter writer = new StreamWriter(request.GetRequestStream()))
                {
                    writer.Write(interaction);
                }
                try
                {
                    HttpWebResponse response     = (HttpWebResponse)request.GetResponse();
                    StreamReader    streamReader = new StreamReader(response.GetResponseStream(), true);
                    string          target       = streamReader.ReadToEnd();
                    streamReader.Close();
                    Console.WriteLine(target);
                }
                catch (Exception exc)
                {
                    Console.WriteLine(exc.Message);
                    return(false);
                }
                return(true);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                return(false);
            }
        }
        public bool ListClients()
        {
            try
            {
                var oauth = new EngagementHistoryAPIProject.Manager();
                oauth["consumer_key"] = "Your App Key From LiveEngage";
                oauth["consumer_secret"] = "Your Secret From LiveEngage";
                oauth["token"] = "Your Access Token From LiveEngage";
                oauth["token_secret"] = "Your Access Token Secret From LiveEngage";
                
                var authzHeader = oauth.GenerateAuthzHeader(appUrl, "POST");
                var request = (HttpWebRequest)WebRequest.Create(appUrl);
                request.Method = "POST";
                request.Headers.Add("Authorization", authzHeader);

                request.ContentType = "application/json";
                string interaction = "{\"start\":{\"from\":1433140200000,\"to\":1435645800000}}";
                using (StreamWriter writer = new StreamWriter(request.GetRequestStream()))
                {
                    writer.Write(interaction);
                }
                try
                {
                    HttpWebResponse response = (HttpWebResponse)request.GetResponse();
                    StreamReader streamReader = new StreamReader(response.GetResponseStream(), true);
                    string target = streamReader.ReadToEnd();
                    streamReader.Close();
                    Console.WriteLine(target);
                }
                catch (Exception exc)
                {
                    Console.WriteLine(exc.Message);
                    return false;
                }
                return true;
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                return false;
            }
        }