关于新浪微博在.net中的应用,配置极其使用

     接口都会调用 我用的是

 private IAuthorizationCodeBase _authCodexl = Uf.C(CtorAT.Sina);
        private SinaError _errxl = null;
        private IApi apixl = Uf.C(CtorApi.Sina);

 var result = apixl.CallGet("statuses/user_timeline.json?since_id=" + MaxTimestamp, accessToken, false);

返回的数据可以是json 也可以是动态类型

我用的是后者 var resultt = result.statuses;
                    foreach (var weiboitem in resultt)
                    {}数据得到以后得遍历。。。

 

新浪微博在做接口对接的时候,如果想要本机调试的话,可以这样配置

 

先把你的项目(正在做的)部署到你本机的IIS或者是你本机的IISExpress上,然后把你的网站在新浪微博API中填写的域名配置到

C:\Windows\System32\drivers\etc\hosts 中 127.0.0.1       yun.sipedi.cn

然后添加到VS中调试的附加到进程

最后进行调试就OK了。。。。

 

posted on 2013-06-03 09:46  hehedada  阅读(145)  评论(0编辑  收藏  举报

导航