instagram api - 仅从客户端授权中检索用户 ID/用户名?

instagram api - retrieve user id / username from client side authorization only?

正在阅读 Instagram 的 api。有人知道通过客户端身份验证(javascript)检索用户 ID 的方法吗?可能使用从以下返回的客户端 ID 或访问令牌:

https://instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=token

我看到了服务器端的解决方案,但有一些限制。谢谢

https://instagram.com/developer/authentication/

好吧,经过一番修改后,这不是最干净的解决方案,但......它有效。

您可以使用此端点:

https://api.instagram.com/v1/users/self/media/recent?access_token=ACCESS-TOKEN

并且可以从任何对象中检索用户名