26 lines
612 B
Markdown
26 lines
612 B
Markdown
# Get all users registred at an event
|
|
|
|
## API Cred
|
|
You must register a new API key on https://profile.intra.42.fr/oauth/applications/new and create a file
|
|
`config.py` with :
|
|
```python
|
|
CLIENT_ID_API42 = "<client_uid>"
|
|
CLIENT_SECRET_API42 = "<client_secret>"
|
|
```
|
|
|
|
For dependencies :
|
|
```
|
|
python3 -m venv venv
|
|
source venv/bin/activate
|
|
pip install -r requirements.txt
|
|
```
|
|
(Or just the last command if you don't care installing package everywhere on your system)
|
|
|
|
## Use
|
|
```
|
|
python event_user.py
|
|
```
|
|
|
|
## Todo
|
|
- If you search event by date and there is two or more at the same time, script will only consider first one
|