ooooo

新浪微博APP开发应用示例之获取指定微博账户的微博内容记录

简介:这是新浪微博APP开发应用示例之获取指定微博账户的微博内容记录的详细页面,介绍了和php,有关的知识、技巧、经验,和一些php源码等。

class=\'pingjiaF\' frameborder=\'0\' src=\'http://biancheng.dnbcw.info/pingjia.php?id=339498\' scrolling=\'no\'>
最近在搞下新浪微博APP开发应用,这个示例之获取指定微博账户的微博内容记录

合肥网产品中心

 

新浪微博APP开发应用示例演示

<html>
<head>
<title>新浪微博APP开发应用示例之获取指定微博账户的微博内容记录</title>
<script type="text/javascript" src="http://js.wcdn.cn/t3/platform/js/api/wb.js" charset="utf-8" ></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
</head>
<body>
微博ID:<input type="text" id="id"/><br/>
提取微博的数量(最多20条):<input type="text" id="num"/><br/>
<input type="button" onclick="testt($(\'#id\').val(),$(\'#num\').val());" value="button"/>
</body>
<script type="text/javascript">
WB.core.load([\'connect\', \'client\'], function() {
    var cfg = {
        key: \'3274830762\',
        xdpath: \'sina.html\'
    };
    WB.connect.init(cfg);
    WB.client.init(cfg);
});
function testt(id,num){
 $.ajax({
                url: "http://api.t.sina.com.cn/statuses/user_timeline.json",
                data: "source=941123049&user_id=" + id, //"method=read", //$("#textBox1").children().serialize()
//source 处是appkey
                dataType: "jason",
                type: "POST",
                success: function(data) {
                        //alert(data.length);
                        var t = eval(\'(\' +data+ \')\');
                        //alert(data);
                        //alert(t.length);
                        if (num>20)
                        {
                                num=20;
                        }
                        for (i=0;i<num ;i++ )
                        {
                                $("body").append("<br/>" + "[" + i + "]" + t[i].text + "<br/>");
                        }
                  }
           } );

   }

</script>
</html>
  

文章来源:合肥网产品中心  

本文:http://lab.wehefei.com/posts/285

更多,欢迎来访问。


爱J2EE关注Java迈克尔杰克逊视频站JSON在线工具

http://biancheng.dnbcw.info/php/339498.html pageNo:8

分类:

技术点:

相关文章:

  • 2022-03-03
  • 2021-12-19
  • 2021-05-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-08
  • 2021-05-13
  • 2021-12-10
  • 2021-09-17
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
相关资源
相似解决方案