From 6ae2aca01074f97af09d033f15a92a4fbe42e4cf Mon Sep 17 00:00:00 2001 From: ryanmcgrath Date: Mon, 13 Sep 2010 02:21:45 -0700 Subject: [PATCH] Migrated from status-methods v5 --- Status-Methods.textile | 57 ++++++++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 21 deletions(-) diff --git a/Status-Methods.textile b/Status-Methods.textile index 6f75abc..27b3169 100644 --- a/Status-Methods.textile +++ b/Status-Methods.textile @@ -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 - requires authentication + +Parameters + +* status: (Required) The status message you're updating with. +* in_reply_to: (Optional) An optional status ID that this message is in reply to. + +
+
+import tango
+
+# Instantiate with Basic (HTTP) Authentication
+twitter = tango.setup(authtype="Basic", username="example", password="example")
+status = twitter.updateStatus("See how easy this was?")
+
+
+ + +h3. destroyStatus() + +Destroys a status message for the authenticating account. Self explanatory. Requires authentication + +Parameters + +* id: The numerical id of the status message you're deleting. +
+
+import tango
+
+# Instantiate with Basic (HTTP) Authentication
+twitter = tango.setup(authtype="Basic", username="example", password="example")
+status = twitter.destroyStatus("12344545")
+
+
h3. showStatus() @@ -22,24 +58,3 @@ status = twitter.showStatus("123") print status["text"] - - - -h3. updateStatus() - -Updates your status on Twitter - requires authentication - -Parameters - -* status: (Required) The status message you're updating with. -* in_reply_to: (Optional) An optional status ID that this message is in reply to. - -
-
-import tango
-
-# Instantiate with Basic (HTTP) Authentication
-twitter = tango.setup(authtype="Basic", username="example", password="example")
-status = twitter.updateStatus("See how easy this was?")
-
-
\ No newline at end of file