This Python and Node.js scripts generates a JWT and uses it to make a GraphQL API request.
- Python 3.7 or higher
pyjwt
for generating JWTrequests
for 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.py
Make sure to include any required IDs in the script before running it.
- Node.js v18 or higher
jsonwebtoken
for 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.js
Make sure to include any required IDs in the script before running it.