diff --git a/server/server.py b/server/server.py index b2aa277..c268f0c 100644 --- a/server/server.py +++ b/server/server.py @@ -34,8 +34,8 @@ class TwitterApi(): auth.set_access_token(config.twitter_conf['TW_ACCESS_TOKEN'], config.twitter_conf['TW_ACCESS_TOKEN_SECRET']) api = tweepy.API(auth) - def send(tweet): - api.update_status(tweet) + def send(self, tweet): + self.api.update_status(tweet) def get_tweets_by_tag(tag): print "NotImplemented"