zoukankan      html  css  js  c++  java
  • 关于新浪微博在.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了。。。。

  • 相关阅读:
    自介
    打招呼
    试验四
    作业:实验二
    个人简介
    实验4
    构建之法—心得体会
    作业:实验二
    个人简介
    软件测试第四次博客作业2
  • 原文地址:https://www.cnblogs.com/weiying/p/weiying_2013_06_03.html
Copyright © 2011-2022 走看看