新的Twitter API:将其用于自定义Twitter Feed [英] New Twitter API: using it for a custom twitter feed

查看:307
本文介绍了新的Twitter API:将其用于自定义Twitter Feed的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

人类.
我有一个自定义的Twitter feed窗口小部件,在API更新之前,该窗口小部件工作正常.代码是这样的:

humans.
I had a custom Twitter feed widget that was working fine until the API update. The code was like this:

<ul id="twitter_update_list"><li>Twitter feed loading</li></ul>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="https://api.twitter.com/1.1/statuses/user_timeline/username.json?callback=twitterCallback2&amp;count=4"></script>

现在他们已经更新到API 1.1,此代码不起作用.所以,我的问题是,现在有人需要改变以使其正常工作吗?还是我只需要开始使用其提要窗口小部件?谢谢您的回答!

Now that they have updated to API 1.1, this code doesn't work. So, my question is, does anyone now what I need to change to get this to work? Or do I just need to start using their feed widgets? Thanks for any answers!

推荐答案

您可以在此处通过实时示例获取解决方案

You can get solution here with live example

http://codepen.io/jasonmayes/pen/Ioype

这篇关于新的Twitter API:将其用于自定义Twitter Feed的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆