-
-
Save dbieber/e85bbe9ddbc5868f6fcc34a0f8b5241a to your computer and use it in GitHub Desktop.
This file contains 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
"""Messager tool for Twitter. | |
Just includes the relevant parts. | |
""" | |
import random | |
import time | |
import fire | |
import twython | |
from messager import settings | |
class Twitter: | |
def __init__(self): | |
self.client_private = twython.Twython( | |
settings.TWITTER_API_KEY_PRIVATE, | |
settings.TWITTER_API_SECRET_KEY_PRIVATE, | |
settings.TWITTER_ACCESS_TOKEN_PRIVATE, | |
settings.TWITTER_ACCESS_TOKEN_SECRET_PRIVATE) | |
def sendPrivateTweet(self, text): | |
return self.client_private.update_status(status=text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment