-
Notifications
You must be signed in to change notification settings - Fork 0
/
keys.py
32 lines (25 loc) · 987 Bytes
/
keys.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import os
###########################################################
# In order for this file to work, you
# need to set the four credential variables in your
# shell environment
#
# "set [variable_name]=[variable_value]" in command prompt
###########################################################
# os.environ.get('[env_variable_name]')
def set_keys():
api_key = os.environ.get('trump_bot_api_key')
api_secret_key = os.environ.get('trump_bot_api_secret_key')
access_token = os.environ.get('trump_bot_access_token')
access_token_secret = os.environ.get('trump_bot_access_token_secret')
print(f"api_key: {api_key}")
print(f"api_secret_key: {api_secret_key}")
print(f"access_token: {access_token}")
print(f"access_token_secret: {access_token_secret}")
keys = {
"api_key": api_key,
"api_secret_key": api_secret_key,
"access_token": access_token,
"access_token_secret": access_token_secret
}
return keys