新的 Twitter API:将其用于自定义 Twitter 提要

2022-01-18 00:00:00 feed twitter widget javascript

人类.
我有一个自定义的 Twitter 提要小部件,在 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

相关文章