Twitter,使用 PHP 更改受保护状态 [英] Twitter, change protected status with PHP

查看:26
本文介绍了Twitter,使用 PHP 更改受保护状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能通过示例建议我如何通过 PHP 将受保护的推文设置从 False 更改为 True.

Can anyone suggest, with examples, how I might go about changing my protected tweet setting from False to True via PHP.

我想做的是将受保护的推文状态切换为:True,发布更新,然后将其切换回 False.

What I'd like to do is Switch my protected tweet status to: True, post a update and then switch it back to False.

我相信所需的 URL 是这样的:

I beleive the URL required is thus:

http://twitter.com/account/update_profile.xml

...
<protected>false</protected>
..

请记住,我不是最擅长 PHP 的 :)

Bear in mind I am not the greatest at PHP :)

推荐答案

我想做的是将我受保护的推文状态切换为:True,发布更新,然后将其切换回 False.

What I'd like to do is Switch my protected tweet status to: True, post a update and then switch it back to False.

我认为这不会做你想做的事.保护适用于您的时间线(即您的所有推文),而不是每条特定推文.如果您将推文设为受保护,非关注者将无法看到它们,但如果您返回未受保护的状态,他们仍然可以在您受保护时发布的所有内容.

I don't think that is going to do what you want. Protection applies to your timeline (that is, all of your tweets), not each particular tweet. If you make your tweets protected, non-followers can't see them, but if you go back to unprotected, they can still everything you posted while you were protected.

这篇关于Twitter,使用 PHP 更改受保护状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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