Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个小 Twitter 应用程序,如果用户从我的应用程序中以特定格式输入推文,它会显示用户的推文。
但是,即使 Twitter 用户保护了他/她的推文,这些推文仍然会显示在我的应用程序中。是否有一个标志或一些参数可以检查用户以查看他/她是否保护了他们的推文,而不是显示这些推文?
谢谢。
返回的推文有一个“受保护”变量,您可以使用该变量。
json: { "user": { "protected": false } } xml: <user><protected>false</protected><user>
如果我的答案不是很清楚,您可以查看页面底部的示例:
http://dev.twitter.com/doc/get/statuses/home_timeline