api - 为什么 Instagram/用户/媒体/最近的 API 调用中缺少某些用户字段?

标签 api instagram

users/相比,我在点击 Instagram 的 /users/{user-id}//users/search API 端点时收到不一致的结果{user-id}/media/recent 端点。

当我点击 /users/{user-id}//users/search 端点时,您可以从下面的示例中看到我收到诸如 网站bio:

https://api.instagram.com/v1/users/search?q=kellyslater

{
  "username": "kellyslater",
  "bio": "#Whappen?",
  "website": "http://aspworldtour.com",
  "profile_picture": "http://images.ak.instagram.com/profiles/profile_8139971_75sq_1333949277.jpg",
  "full_name": "kellyslater",
  "id": "8139971"
}

但是,当您点击 users/{user-id}/media/recent 端点时,您可以看到这些用户字段仍然返回,但没有填充(这似乎是一致的, 如果我关注那个用户/那个用户关注我没有区别):

https://api.instagram.com/v1/users/8139971/media/recent

{
  "user": {
    "username": "kellyslater",
    "website": "",
    "profile_picture": "http://images.ak.instagram.com/profiles/profile_8139971_75sq_1333949277.jpg",
    "full_name": "kellyslater",
    "bio": "",
    "id": "8139971"
  }
}

所以问题是;预期的行为是什么?

  • Instagram API 是否应该返回并填充这些字段?
  • Instagram API 根本不应该返回这些字段吗?
  • 或者它是否按预期工作?

最佳答案

Instagram 在 2015 年 3 月通过发布解决了这个问题; http://developers.instagram.com/post/112826291271/api-bug-fixes

总而言之,这是一个错误;

There has been a long standing bug where some endpoints containing the ‘user’ node would have empty ‘bio’ and ‘website’ fields. We have now removed those fields from all endpoints except /users/ and /users/self.

关于api - 为什么 Instagram/用户/媒体/最近的 API 调用中缺少某些用户字段?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25548048/

相关文章:

ios - 从Instagram获取照片

api - RISCV C至UART的十六进制编译

iphone - 到底什么是私有(private) API,为什么 Apple 会拒绝使用 iOS 应用程序?

javascript - 通过 REST API 传输 JavaScript 函数

go - Instagram 媒体 ID 到时间戳的转换

ios - 如何从我的 iOS 应用打开 Instagram 应用?

angularjs - Angular 嵌套 Promise 显示错误

api - Piwik API如何获得7天的每日访问量

ios - Instagram 客户端身份验证在重定向后缺少#access_token

javascript - 不明白为什么我的 Instagram 照片没有出现在 Instafeed 上?