Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 942 Bytes

README.md

File metadata and controls

53 lines (37 loc) · 942 Bytes

NodeX Studio GraphQL API Example

This Python and Node.js scripts generates a JWT and uses it to make a GraphQL API request.

Python

Requirements

  • Python 3.7 or higher
  • pyjwt for generating JWT
  • requests for sending HTTP requests

Installation

Install the required packages:

cd python
pip install -r requirements.txt

Usage

  1. Write your API Client ID and Secret in _key.py.
  2. 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

Requirements

  • Node.js v18 or higher
  • jsonwebtoken for generating JWT

Installation

Install the required packages:

cd nodejs
npm install

Usage

  1. Write your API Client ID and Secret in _key.js.
  2. Run the script you need, for example:
node projects.js

Make sure to include any required IDs in the script before running it.