diff options
author | robert <robert@shackspace> | 2011-04-22 11:00:15 +0200 |
---|---|---|
committer | root <root@krebs> | 2011-04-22 11:00:15 +0200 |
commit | 54939df512e5b9c3d4831b2eca15277f2a6f48c9 (patch) | |
tree | 44bac21aec4f9c03915b6bd790a14d9cec91a5d4 /modules | |
parent | 96299f387057a6e7df1863f3978ca97219e9c725 (diff) |
modules/twitter: use oauth
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/twitter | 12 |
1 files 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 "[31;4;5;1mBug Robert to implement Twitter-OAuth![m" -exit(1) +#print "[31;4;5;1mTODO Bug Robert to implement Twitter-OAuth![m" +#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") |