This Python and Node.js scripts generates a JWT and uses it to make a GraphQL API request.
- Python 3.7 or higher
pyjwtfor generating JWTrequestsfor sending HTTP requests
Install the required packages:
cd python
pip install -r requirements.txt- Write your API Client ID and Secret in
_key.py. - Run the script you need, for example:
python projects.pyMake sure to include any required IDs in the script before running it.
- Node.js v18 or higher
jsonwebtokenfor generating JWT
Install the required packages:
cd nodejs
npm install- Write your API Client ID and Secret in
_key.js. - Run the script you need, for example:
node projects.jsMake sure to include any required IDs in the script before running it.