- Welcome to Create PR to fix bugs and Create issues to tell me more about anythings
- The License is MIT
20240119 - first version, loop account item call PandoraNext to get access token
-
clone project
git clone https://github.com/leokwsw/PandoraNext-RefreshToken cd PandoraNext-RefreshToken
-
get PandoraNext License Link
-
copy PandoraNext config and token file, and follow config.json and tokens.json to set up PandoraNext
cd pandoranext/data cp example.config.json config.json # edit config.json cp example.tokens.json tokens.json # edit tokens.json cd ../ docker-compose up -d
-
copy and edit config file
cd ../ cp config_template.yaml config.yaml # edit config file
-
copy and edit account.json
cp example.account.json account.json # edit account file
Please follow the json format below
[ { "email": "[email protected]", "password": "password" }, { "email": "[email protected]", "password": "password" }, ... ]
-
install dependency
pip install -r requirements.txt
-
run it
python main.py
-
after the python finish to run, the json file named
account.json
will be look like this[ { "email": "[email protected]", "password": "password", "access_token": "{{JWT Token}}", "access_token_expire_at": "2024-01-29 10:14:19.929272" }, { "email": "[email protected]", "password": "password", "access_token": "{{JWT Token}}", "access_token_expire_at": "2024-01-29 10:15:00.479372" }, ... ]
-
you can use the
access_token
to call ChatGPT API.