예제 #1
0
        public FileResult Get()
        {
            EvernoteExporter exporter = new EvernoteExporter();
            var stream = exporter.CreateExportedNote(DateTime.Now, "Example streamed note", new string[] { "apples", "bananas", "coconuts", "dates", "elderberry" });

            return(File(stream, "application/xml", "export.enex"));
        }
예제 #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            //Class1.Test1();
            //EvernoteExporter.CreateAndSaveNote(DateTime.Now, "Example Note", new string[] { "apples", "bananas", "chocolate" });

            var exporter = new EvernoteExporter();
            var stream   = exporter.CreateExportedNote(DateTime.Now, "My List", new string[] { "apples", "bananas", "chocolate" });

            var    streamReader = new StreamReader(stream);
            string text         = streamReader.ReadToEnd();

            Console.WriteLine(text);
        }