这个api脚本为我的网站的应用程序无法正常工作

时间:2016-08-10 16:18:21

标签: c# api

我需要帮助

    using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace kbam_.API
{
    class filea
    {
        public static string filea(string url) //this code right here
        {
            string contents;
            var wc = new System.Net.WebClient();
            contents = wc.DownloadString(url);

        }


    }
}

是的,我被kesbook uk授权使用它我是主人所以我可以使用我想要的http://kesbook.cf/autho

1 个答案:

答案 0 :(得分:-1)

如果您要查询RESTful API,我建议您使用Restsharp nugget包,它更容易使用。