How to check if an app has an access to Direct Messages?

时间秒杀一切 提交于 2019-12-12 02:33:53

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/37638911/how-to-check-if-an-app-has-an-access-to-direct-messages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!