コード例 #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);
        }
コード例 #2
0
        /// <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();
        }
コード例 #3
0
        /// <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();
        }