Example #1
0
        /// <summary>
        /// Main method, to run this code example as a standalone application.
        /// </summary>
        /// <param name="args">The command line arguments.</param>
        public static void Main()
        {
            GetExchangeRatesForCurrencyCode codeExample = new GetExchangeRatesForCurrencyCode();

            Console.WriteLine(codeExample.Description);

            string currencyCode = _T("INSERT_CURRENCY_CODE_HERE");

            codeExample.Run(new DfpUser(), currencyCode);
        }
Example #2
0
        /// <summary>
        /// Main method, to run this code example as a standalone application.
        /// </summary>
        public static void Main()
        {
            GetExchangeRatesForCurrencyCode codeExample = new GetExchangeRatesForCurrencyCode();
            string currencyCode = "INSERT_CURRENCY_CODE_HERE";

            Console.WriteLine(codeExample.Description);
            try {
                codeExample.Run(new DfpUser(), currencyCode);
            } catch (Exception e) {
                Console.WriteLine("Failed to get exchange rates. Exception says \"{0}\"",
                                  e.Message);
            }
        }