示例#1
0
        /// <summary>
        /// Main method, to run this code example as a standalone application.
        /// </summary>
        public static void Main()
        {
            GetMarketplaceComments codeExample = new GetMarketplaceComments();

            Console.WriteLine(codeExample.Description);

            long proposalId = long.Parse(_T("INSERT_PROPOSAL_ID_HERE"));

            codeExample.Run(new DfpUser(), proposalId);
        }
示例#2
0
        /// <summary>
        /// Main method, to run this code example as a standalone application.
        /// </summary>
        public static void Main()
        {
            GetMarketplaceComments codeExample = new GetMarketplaceComments();
            long proposalId = long.Parse("INSERT_PROPOSAL_ID_HERE");

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