Change config import
This commit is contained in:
parent
4792d91de5
commit
1b4fb12854
Binary file not shown.
|
@ -3,13 +3,11 @@ import datetime
|
|||
from beaupy import *
|
||||
from beaupy.spinners import *
|
||||
from prettytable import PrettyTable
|
||||
from . import config
|
||||
import config
|
||||
|
||||
############
|
||||
## CONFIG ##
|
||||
############
|
||||
CLIENT_ID_API42 = config.CLIENT_ID_API42
|
||||
CLIENT_SECRET_API42 = config.CLIENT_SECRET_API42
|
||||
ENDPOINT_API42 = "https://api.intra.42.fr/"
|
||||
|
||||
###############
|
||||
|
@ -24,8 +22,8 @@ class EVENT:
|
|||
def get_api_cred() -> str:
|
||||
payload = {
|
||||
'grant_type' : 'client_credentials',
|
||||
'client_id' : CLIENT_ID_API42,
|
||||
'client_secret' : CLIENT_SECRET_API42
|
||||
'client_id' : config.CLIENT_ID_API42,
|
||||
'client_secret' : config.CLIENT_SECRET_API42
|
||||
}
|
||||
|
||||
r = requests.post(ENDPOINT_API42 + "/oauth/token", params=payload)
|
||||
|
|
Loading…
Reference in New Issue