我正在使用 Twitter API 版本 1 并将其替换为 v1.1。
然后我在 1.1 版本上找不到 users/profile_image/:screen_name API。
https://api.twitter.com/1/users/profile_image/shonanshachu
有谁知道哪个 API 是替换 users/profile_image 的最佳实践?
我想要的是个人资料图像列表或带有 Twitter ID 或屏幕名称参数的简单 url。
最佳答案
也许这对你有用。这些调用会返回您需要的所有信息,包括图像链接。如果您只需要给定 user_id 或 user_screen 的一个用户的图像,那么您可以从这里阅读更多信息: https://dev.twitter.com/docs/user-profile-images-and-banners
https://api.twitter.com/1.1/followers/list.json (您可以用 friend 替换关注者)
关于Twitter 个人资料图像 API 已弃用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12560753/