Migrated from status-methods v5
parent
36c6e73d31
commit
6ae2aca010
1 changed files with 36 additions and 21 deletions
|
|
@ -2,6 +2,42 @@ h2. Status methods
|
|||
|
||||
The methods below deal with showing, updating, and deleting status messages on Twitter.
|
||||
|
||||
h3. updateStatus()
|
||||
|
||||
Updates your status on Twitter - <b>requires authentication</b>
|
||||
|
||||
Parameters
|
||||
|
||||
* <b>status:</b> (Required) The status message you're updating with.
|
||||
* <b>in_reply_to:</b> (Optional) An optional status ID that this message is in reply to.
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
import tango
|
||||
|
||||
# Instantiate with Basic (HTTP) Authentication
|
||||
twitter = tango.setup(authtype="Basic", username="example", password="example")
|
||||
status = twitter.updateStatus("See how easy this was?")
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
h3. destroyStatus()
|
||||
|
||||
Destroys a status message for the authenticating account. Self explanatory. <b>Requires authentication</b>
|
||||
|
||||
Parameters
|
||||
|
||||
* <b>id:</b> The numerical id of the status message you're deleting.
|
||||
<pre>
|
||||
<code>
|
||||
import tango
|
||||
|
||||
# Instantiate with Basic (HTTP) Authentication
|
||||
twitter = tango.setup(authtype="Basic", username="example", password="example")
|
||||
status = twitter.destroyStatus("12344545")
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
h3. showStatus()
|
||||
|
||||
|
|
@ -22,24 +58,3 @@ status = twitter.showStatus("123")
|
|||
print status["text"]
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
|
||||
h3. updateStatus()
|
||||
|
||||
Updates your status on Twitter - <b>requires authentication</b>
|
||||
|
||||
Parameters
|
||||
|
||||
* <b>status:</b> (Required) The status message you're updating with.
|
||||
* <b>in_reply_to:</b> (Optional) An optional status ID that this message is in reply to.
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
import tango
|
||||
|
||||
# Instantiate with Basic (HTTP) Authentication
|
||||
twitter = tango.setup(authtype="Basic", username="example", password="example")
|
||||
status = twitter.updateStatus("See how easy this was?")
|
||||
</code>
|
||||
</pre>
|
||||
Loading…
Add table
Add a link
Reference in a new issue