Migrated from status-methods v3
parent
a0425b885e
commit
b0593ce6a1
1 changed files with 20 additions and 0 deletions
|
|
@ -4,7 +4,11 @@ The methods below deal with showing, updating, and deleting status messages on T
|
|||
|
||||
|
||||
h3. showStatus()
|
||||
|
||||
Returns an object containing the status represented by the numerical ID passed in.
|
||||
|
||||
Parameters
|
||||
|
||||
* <b>id:</b> (Required) The numerical ID of the status to retrieve.
|
||||
|
||||
<pre>
|
||||
|
|
@ -21,4 +25,20 @@ print status["text"]
|
|||
|
||||
|
||||
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