如何迁移Twitter的API从V1为1.1版? [英] How to Migrate Twitter API from v1 to v1.1?

查看:138
本文介绍了如何迁移Twitter的API从V1为1.1版?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到现在我一直在使用Twitter的API V1,但我的应用程序突然停止twitting,它显示我的登录每次我尝试登录失败,当我告诉响应它给我消息像

till now i was using twitter api v1,but my application suddenly stopped twitting,it shows me login failed every time i try to login,when i show response it gives me msg like

{错误:[{消息:Twitter的REST API V1不再活动请迁移到API V1.1 https://dev.twitter.com/docs /api/1.1/overview,code:68}]}

这是写在twiter开发者控制台

this is written on twiter developer console

德$ P $ API的1.0版的pcation

大多数开发者并不需要做很多工作,从1.0过渡到1.1版,但我们要确保有足够的时间这样做。我们将关闭v1.0的之前提供一个6个月的窗口。退休后(见的平台日历日期),1.0端点将不再可用。

Most developers won't need to do much work to transition from v1.0 to v1.1, but we want to make sure there is ample time to do so. We will be providing a 6 month window before turning off v1.0. After retirement (see the platform calendar for dates), the 1.0 endpoints will no longer be available.

我使用的 twitter4j核-2.1.11.jar ,*的路标核-1.2.1.1.jar 的*,和放大器; 路标-commonshttp4-1.2.1.1.jar

i am using twitter4j-core-2.1.11.jar,*signpost-core-1.2.1.1.jar*, & signpost-commonshttp4-1.2.1.1.jar

于是,我就从V1迁移我的code到1.1版,我试图找到有关这个解决方案在Twitter开发者控制台,但无法得到一个适当的方式该怎么办呢。

so i tried to migrate my code from v1 to v1.1,i tried to find solution on twitter developer console regarding this,but could not get a proper way how to do it.

我希望有些人会帮我解决这个问题。

I hope Some one will help me to solve this issue

感谢

解决的问题: 人都面临的Twitter的API迁移问题能够下载更新的API的TWITTER code从这里

ISSUE RESOLVED: PEOPLE WHO ARE FACING TWITTER API MIGRATION ISSUE CAN DOWNLOAD UPDATED API WORKING TWITTER CODE FROM HERE

- 更改你的用户密钥和用户密钥

-change your consumer key and consumer secret key

推荐答案

我也面临着同样的问题,因为微博不再支持从六月11'13 REST 1.0。但是,我与文件。如果你正在使用twitter4j罐为你的应用与Twitter进行身份验证意味着它一定会为你工作的最新twitter4j罐子取代固定的问题。

I was also facing the same problem as Twitter no more supports REST 1.0 from June 11'13. But I fixed the problem by replacing with the latest twitter4j jar file.If you are using twitter4j jar for your application to authenticate with twitter means it will definitely work for you.

1.Download从这里 最新twitter4j

1.Download the latest twitter4j from here

用,哥哥2.Replace它,你就完成了。

2.Replace it with the older one and you are done.

修改

最初更换twitter4j罐后,它可能会显示在包的进口错误。 如果是的话那么替换

Initially after replacing the twitter4j jar, it may show error in package importing. if so then replace

import twitter4j.http.AccessToken;

import twitter4j.auth.AccessToken;

干杯

这篇关于如何迁移Twitter的API从V1为1.1版?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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