从 Twitter API 获取当前用户的信息 [英] Get current user's info from Twitter API

查看:34
本文介绍了从 Twitter API 获取当前用户的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个 Twitter 应用程序(使用 oAuth),但找不到关于如何获取当前用户信息的任何信息.

I am building a Twitter app (with oAuth) and I cannot find any info on how I can get the current user's info.

当前用户是指授予我的应用权限以及应用向其发出 API 请求的用户.

By current user, I mean the user which granted my app permissions and for whom the app is making the requests to the API.

有什么建议吗?

推荐答案

实际上是account/verify_credentials",如下所示:

It was actually "account/verify_credentials" as seen here:

https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-verify_credentials.html

这篇关于从 Twitter API 获取当前用户的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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