From 54939df512e5b9c3d4831b2eca15277f2a6f48c9 Mon Sep 17 00:00:00 2001 From: robert Date: Fri, 22 Apr 2011 11:00:15 +0200 Subject: modules/twitter: use oauth --- modules/twitter | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/twitter b/modules/twitter index 5b1b0be9..26982525 100755 --- a/modules/twitter +++ b/modules/twitter @@ -1,11 +1,15 @@ #!/usr/bin/python #encode=utf8 -print "Bug Robert to implement Twitter-OAuth!" -exit(1) +#print "TODO Bug Robert to implement Twitter-OAuth!" +#exit(1) +import sys +#sys.path.append("/usr/local/lib/") -import sys, twitter +import twitter, os, pwd + +#os.getlogin = lambda: pwd.getpwuid(os.getuid())[0] sys.stderr = sys.stdout @@ -61,7 +65,7 @@ if len(sys.argv) > 1 and sys.argv[1] == "--help": -api = twitter.Api(username="shackspam", password="sh4ckit") +api = twitter.Api("Z7f9npE5ixvZ0lMCHDZBOg", "8z0gyfOABar1HxKvqL6fYXLqRFUPLQ9OOzDFt7Q4F4", "139766258-94TGPvNsJ8tYVv68eZewfXOIyDvRCWdycNlUgHrs", "NRnDQZPCoLrDizFvakZkSWgoG4vgGuT3OOMChSfiI") #api.SetXTwitterHeaders("Shackspace UTTERANCE","","0.00.0.01.42") -- cgit v1.2.3