Migrated from status-methods v8
parent
f965b51534
commit
2642d6903c
1 changed files with 6 additions and 6 deletions
|
|
@ -13,10 +13,10 @@ Parameters
|
|||
|
||||
<pre>
|
||||
<code>
|
||||
import tango
|
||||
import twython
|
||||
|
||||
# Instantiate with Basic (HTTP) Authentication
|
||||
twitter = tango.setup(authtype="Basic", username="example", password="example")
|
||||
twitter = twython.setup(authtype="Basic", username="example", password="example")
|
||||
twitter.updateStatus("See how easy this was?")
|
||||
</code>
|
||||
</pre>
|
||||
|
|
@ -32,10 +32,10 @@ Parameters
|
|||
|
||||
<pre>
|
||||
<code>
|
||||
import tango
|
||||
import twython
|
||||
|
||||
# Instantiate with Basic (HTTP) Authentication
|
||||
twitter = tango.setup(authtype="Basic", username="example", password="example")
|
||||
twitter = twython.setup(authtype="Basic", username="example", password="example")
|
||||
twitter.destroyStatus("12344545")
|
||||
</code>
|
||||
</pre>
|
||||
|
|
@ -50,10 +50,10 @@ Parameters
|
|||
|
||||
<pre>
|
||||
<code>
|
||||
import tango
|
||||
import twython
|
||||
|
||||
# Instantiate with no Auth - Auth might be needed if user is protected
|
||||
twitter = tango.setup()
|
||||
twitter = twython.setup()
|
||||
status = twitter.showStatus("123")
|
||||
|
||||
print status["text"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue