Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 无法获取用户api 1.1的twitter配置文件图片_Android_Twitter - Fatal编程技术网

Android 无法获取用户api 1.1的twitter配置文件图片

Android 无法获取用户api 1.1的twitter配置文件图片,android,twitter,Android,Twitter,我想从twitter api获取个人资料图片 我试过以下方法 a) 根据此url:和 在此方法中,获取异常 08-29 09:05:26.282: W/System.err(3823): 404:The URI requested is invalid or the resource requested, such as a user, does not exists. Also returned when the requested format is not supported by the

我想从twitter api获取个人资料图片

我试过以下方法

a) 根据此url:和

在此方法中,获取异常

08-29 09:05:26.282: W/System.err(3823): 404:The URI requested is invalid or the resource requested, such as a user, does not exists. Also returned when the requested format is not supported by the requested method.
08-29 09:05:26.282: W/System.err(3823): message - Sorry, that page does not exist.
b) 根据这个最新的网址

在此传递用户的屏幕名称:

https://api.twitter.com/1.1/users/profile_banner.json?screen_name=iRohitSachdeva

响应:{“错误”:[{“消息”:“错误的身份验证数据”,“代码”:215}]}。

正确的做法是找出身份验证数据出错的原因

然而,获取个人资料图像的简单方法是使用类似

例如,获取我的头像,访问

它应该为我的Twitter帐户的图片返回正确的URL

https://api.twitter.com/1.1/users/profile_banner.json?screen_name=iRohitSachdeva