kjaymiller / Az-Queue-Tweeter

Send Tweets via Azure Storage Queues
https://pypi.org/project/azqueuetweeter/
MIT License
1 stars 1 forks source link

how much tweepy auth should we be responsible for #7

Closed kjaymiller closed 2 years ago

kjaymiller commented 2 years ago

currently twitter.py has both auth and client. It's important to note in the currently implementation of the Twitter API - you will need both is loading an image but only client if you are just sending a text tweet.

Should this project be responsible for the auth points and pass them into tweepy or should we enforce the user adding tweepy and their auth + client to the project?

Possible Solutions

Make Auth a class that can output to both the client and auth as needed.

https://github.com/kjaymiller/Az-Queue-Tweeter/blob/e5906b0a77160e92d08dfdd2269beae79b4b43f3/src/twitter.py#L6-L28