Created
November 25, 2011 14:55
-
-
Save giginet/1393707 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| # | |
| # /Users/giginet/Desktop/gyouza.py | |
| # created by giginet on 2011/11/25 | |
| # | |
| import twoauth | |
| class Gyoza(object): | |
| def __init__(self, consumer_key, consumer_secret, access_token, access_token_secret): | |
| self.tw = twoauth.api(consumer_key, consumer_secret, access_token, access_token_secret) | |
| def say(self): | |
| import random | |
| self.tw.status_update(u'@ayako119 みぃお餃子[%d]' % random.randint(0, 100)) | |
| if __name__ == '__main__': | |
| g = Gyoza(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET) | |
| g.say() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment