示例#1
0
        public string Get(string folder)
        {
            var config = JsonConvert.DeserializeObject <Config>(File.ReadAllText("config.json"));

            var value = File.ReadAllText(@"clipboard\skyclipboard.txt");

            var tuple = SkyNet.Paste($"{config.SkynetUrlGet}", value);

            File.WriteAllBytes($@"{folder}\{tuple.Item1}", tuple.Item2);

            return($@"{folder}\{tuple.Item1}");
        }
示例#2
0
        public void TestMethod1()
        {
            var content = SkyNet.Copy("https://siasky.net/skynet/skyfile/", "clipboard", @"C:\Users\Khanimamba\Desktop\Cake\New folder\Example.txt");

            SkyNet.Paste("https://siasky.net/", content);
        }