twitter #2

Merged
s434708 merged 50 commits from twitter into master 2022-06-09 19:42:33 +02:00
Showing only changes of commit 7dd6a34338 - Show all commits

View File

@ -6,9 +6,6 @@ from ayct_backend.twitter.models import *
twitter = Blueprint('twitter', __name__)
consumer_key = current_app.config["TWITTER_CONSUMER_KEY"]
consumer_secret = current_app.config["TWITTER_CONSUMER_SECERT"]
@twitter.route('/account', methods=['GET'])
def get_twitter_accounts():
twitter_accounts = TwitterAccount.query.all()
@ -39,6 +36,9 @@ def add_twitter_account():
status=400,
)
else:
consumer_key = current_app.config["TWITTER_CONSUMER_KEY"]
consumer_secret = current_app.config["TWITTER_CONSUMER_SECERT"]
oauth = OAuth1Session(
consumer_key,
client_secret=consumer_secret