コード例 #1
0
        public string GetRawPaste(Paste paste)
        {
            string id       = "/" + paste.Key;
            string response = SendRequest("https://pastebin.com/raw" + id);

            return(response);
        }
コード例 #2
0
        public string GetPasteContent(Paste paste)
        {
            var dataDic = new Dictionary <string, string>()
            {
                { "api_dev_key", this.Key },
                { "api_user_key", this.UserId },
                { "api_paste_key", paste.Key },
                { "api_option", "show_paste" }
            };

            string response = SendRequest("https://pastebin.com/api/api_raw.php", dataDic);

            Console.WriteLine(response);

            return("");
        }