Exemple #1
0
        static void Main(string[] args)
        {
            var provider = new ParasutProvider();
            var accounts = provider.Accounts(provider.Client.CompanyId);

            foreach (var account in accounts)
            {
                Console.WriteLine($"{account.Attributes.Name}");
            }
            Console.ReadKey(true);
        }
        /// <summary>
        /// The Main.
        /// </summary>
        /// <param name="args">The args<see cref="string[]"/>.</param>
        internal static void Main(string[] args)
        {
            try
            {
                var provider = new ParasutProvider(url, "v4", companyId, clientId, clientSecret, userName, password);
                var me       = provider.Client.Home.ShowMe();

                Console.WriteLine(JsonConvert.SerializeObject(me));
            }
            catch (Exception ex)
            {
            }



            Console.WriteLine("Hello World!");


            Console.ReadLine();
        }
        /// <summary>
        /// The Main.
        /// </summary>
        /// <param name="args">The args<see cref="string[]"/>.</param>
        internal static void Main(string[] args)
        {
            try
            {
                var provider = new ParasutProvider(url, "v4", companyId, clientId, clientSecret, userName, password);
                var me       = provider.Client.Home.ShowMe();

                Console.WriteLine(JsonConvert.SerializeObject(me));
            }
            catch (Exception ex)
            {
                Console.WriteLine($"Error: {ex.Message}");
            }



            Console.WriteLine("Press any key to exit");


            Console.ReadLine();
        }