Twitter 个人资料图片 API 已弃用 [英] Twitter Profile Image API deprecated

查看:58
本文介绍了Twitter 个人资料图片 API 已弃用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Twitter API 版本 1 并将它们替换为 v1.1.
然后我在 1.1 版上找不到 users/profile_image/:screen_name API.

I am using Twitter API version 1 and replacing them to v1.1.
Then I cannot find users/profile_image/:screen_name API on version 1.1.

https://api.twitter.com/1/users/profile_image/shonanshachu

有谁知道哪个 API 可以成为替换 users/profile_image 的最佳实践?
我想要的是个人资料图片列表或带有 Twitter ID 或屏幕名称参数的简单网址.

Does anyone know which API can be the best practice for replacing users/profile_image?
What I want is list of profile images or simple url with parameter of Twitter ID or screen name.

推荐答案

也许这对你有用.这些调用会返回您需要的所有信息,包括图像链接.如果对于给定的 user_id 或 user_screen,您只需要一个用户的图像,那么您可以从此处阅读更多信息:https://dev.twitter.com/docs/user-profile-images和横幅

Maybe this will be useful for you. Those calls return all the info you need, including the image link. If you need only one user's image for a given user_id or user_screen, then you can read more from here: https://dev.twitter.com/docs/user-profile-images-and-banners

https://api.twitter.com/1.1/followers/list.json(你可以用朋友替换关注者)

https://api.twitter.com/1.1/followers/list.json (you can replace followers with friends)

这篇关于Twitter 个人资料图片 API 已弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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