-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
32 lines (27 loc) · 757 Bytes
/
Copy pathconfig.py
File metadata and controls
32 lines (27 loc) · 757 Bytes
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
env = dict(
host = 'localhost',
port = 8888
)
# Client Keys
SPOTIFY_CLIENT_ID = '63e63727c47a470595f713f5d7854f0f'
SPOTIFY_CLIENT_SECRET = '51cc2358f47d4cefbd2726be498a8163'
# Important URLs
SPOTIFY_AUTH_URL = 'https://accounts.spotify.com/authorize'
SPOTIFY_TOKEN_URL = 'https://accounts.spotify.com/api/token'
SPOTIFY_BASE_URL = 'https://api.spotify.com/v1'
# Server-side parameters
CLIENT_SIDE_URL = 'http://' + env['host']
PORT = env['port']
CALLBACK_URI = '{}:{}/callback'.format(CLIENT_SIDE_URL, PORT)
SCOPE = 'streaming'
STATE = ''
SHOW_DIALOG = 'true'
authQueryParams = dict(
response_type = 'code',
redirect_uri = CALLBACK_URI,
scope = SCOPE,
# state = STATE,
# showDialog = SHOW_DIALOG,
client_id = SPOTIFY_CLIENT_ID
)
tokenInfo = {}