Skip to content

Instantly share code, notes, and snippets.

@giginet
Created November 25, 2011 14:55
Show Gist options
  • Select an option

  • Save giginet/1393707 to your computer and use it in GitHub Desktop.

Select an option

Save giginet/1393707 to your computer and use it in GitHub Desktop.
# -*- 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