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了。。。。

  • 相关阅读:
    python 全栈基础作业题
    计算机基础之二:操作系统的发展史
    计算机基础系列之一:计算机硬件概述
    饼图
    折线图
    win_diy_monkey demo
    csv,Excel
    uiautomator2
    win ui自动化测试
    html
  • 原文地址:https://www.cnblogs.com/weiying/p/weiying_2013_06_03.html
Copyright © 2011-2022 走看看