Michael Benayoun commited on
Commit
c6dce0f
·
1 Parent(s): a1b7d73

Test tweet

Browse files
Files changed (2) hide show
  1. app.py +22 -0
  2. Dockerfile → tmp_Dockerfile +0 -0
app.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import tweepy
3
+
4
+ BEARER_TOKEN = os.environ.get("BEARER_TOKEN")
5
+ CONSUMER_KEY = os.environ.get("CONSUMER_KEY")
6
+ CONSUMER_SECRET = os.environ.get("CONSUMER_SECRET")
7
+ ACCESS_TOKEN = os.environ.get("ACCESS_TOKEN")
8
+ ACCESS_TOKEN_SECRET = os.environ.get("ACCESS_TOKEN_SECRET")
9
+
10
+ client = tweepy.Client(
11
+ bearer_token=BEARER_TOKEN,
12
+ consumer_key=CONSUMER_KEY,
13
+ consumer_secret=CONSUMER_SECRET,
14
+ access_token=ACCESS_TOKEN,
15
+ access_token_secret=ACCESS_TOKEN_SECRET,
16
+ )
17
+
18
+
19
+
20
+ response = client.create_tweet(
21
+ text="This was tweeted by the Space"
22
+ )
Dockerfile → tmp_Dockerfile RENAMED
File without changes