Beispiel #1
0
        public static int Main(string[] args)
        {
            if (args.Length < 2)
            {
                Console.WriteLine("Usage: {0} [username] [password] [optional folder name to create]", System.AppDomain.CurrentDomain.FriendlyName);
                return(1);
            }

            var example = new PMAPIExample(args[0], args[1]);

            if (args.Length == 3)
            {
                // The third argument implies that we should create a folder.
                example.CreateFolder(args[2]);
            }
            else
            {
                example.GetFolders();
            }

            return(0);
        }
Beispiel #2
0
        public static int Main(string[] args)
        {
            if(args.Length < 2)
            {
                Console.WriteLine("Usage: {0} [username] [password] [optional folder name to create]", System.AppDomain.CurrentDomain.FriendlyName);
                return 1;
            }

            var example = new PMAPIExample(args[0], args[1]);

            if(args.Length == 3)
            {
                // The third argument implies that we should create a folder.
                example.CreateFolder(args[2]);
            }
            else
            {
                example.GetFolders();
            }

            return 0;
        }