예제 #1
0
        static void Main(string[] args)
        {
            GoogleClosureProcessor.GoogleClosureProcessor gc = new GoogleClosureProcessor.GoogleClosureProcessor();
            GoogleClosureResponse script = gc.Compress(File.ReadAllText("test.js"));

            Console.ReadLine();
        }
        public GoogleClosureResponse Compress(string source)
        {
            string post = generatePost(source);
            GoogleClosureResponse googleClosureResponse = CallApi(post, source);

            googleClosureResponse.OutputFilePath = Constants.GOOGLECLOSUREAPI + googleClosureResponse.OutputFilePath;

            return(googleClosureResponse);
        }