Twitter 个人资料图片 API 已弃用 [英] Twitter Profile Image API deprecated
问题描述
我正在使用 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屋!