开发者

Twitter, change protected status with PHP

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

What I'd like to do is Switch my protected tweet status to: True, post a update and then swit开发者_如何学Pythonch it back to False.

I beleive the URL required is thus:

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

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

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


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.


POST

authenticity_token=token you can grab from http://twitter.com/account/settings using DOM or regex user[protected]=1

to http://twitter.com/account/settings

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜