如何检查应用程序是否可以访问直接消息? [英] How to check if an app has an access to Direct Messages?
问题描述
我知道访问作为响应 API 请求的 X-Access-Level
标头返回.但我注意到 read-write
为 Read and Write
和 Read、Write 和 Direct Messages
返回.那么,我如何知道该应用是否也可以访问私信
?
I'm aware that access is returned as X-Access-Level
header in response to API requests. But I noticed read-write
is returned for both Read and Write
and Read, Write and Direct Messages
. So, how do I know if the app has access to Direct Messages
as well?
推荐答案
使用 Apigee Twitter 控制台进行测试我得到 x-access-level:read-write-directmessages
作为响应头.为您正在测试的帐户授予的访问令牌可能没有授予 DM 访问权限.尝试撤销访问令牌并重新授权.
Testing with the Apigee Twitter console I get x-access-level:
read-write-directmessages
as a response header. The access token granted for the account you are testing likely doesn't have DM access granted. Try revoking the access token and authorizing it again.
这篇关于如何检查应用程序是否可以访问直接消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!