Exemple #1
0
        public void GetCampaignInfo(string[] operationParameters)
        {
            try
            {
                if (operationParameters.Length == 2)
                {
                    if (string.IsNullOrWhiteSpace(operationParameters[1]))
                    {
                        throw new ArgumentNullException();
                    }

                    string response = _restClientHelper.GetCampaignInfo(operationParameters[1]);
                    Console.WriteLine(response);
                }
                else
                {
                    throw new ArgumentNullException();
                }
            }
            catch (ArgumentNullException)
            {
                Console.WriteLine("Name is Invalid");
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }