Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
PtPrashantTripathi committed Jul 28, 2023
1 parent e40ba2a commit 0878cc0
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,15 @@ def main():
bearer_token = os.environ["BearerToken"]
# bearer_token = generate_bearer_token(api_key, api_secret)

client = tweepy.Client(
consumer_key=api_key,
consumer_secret=api_secret,
access_token=access_token,
access_token_secret=access_token_secret,
)

# client = tweepy.Client(
# consumer_key=api_key,
# consumer_secret=api_secret,
# access_token=access_token,
# access_token_secret=access_token_secret,
# )
auth = tweepy.OAuthHandler(api_key,api_secret)
auth.set_access_token(access_token, access_token_secret)
client = tweepy.API(auth)
# Tweet Posting
status = client.create_tweet(text=Post, user_auth=True)

Expand Down

0 comments on commit 0878cc0

Please sign in to comment.