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