Skip to content

Instantly share code, notes, and snippets.

@dbieber
Created Feb 9, 2021
Embed
What would you like to do?
"""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