Node.js web API to display NIU e-scooter cloud data.
NIU Cloud access made by: @BlueAndi
Install & run project using npm.
cd my-project
npm install
npm start
In order to run the project, full fill all variables inside .env
file. If you don't have an account on NIU Cloud, install the app and setup an account and vehicle.
API_ACCOUNT = [email protected]
API_PWD = *******
API_COUNTRY_CODE = 351
API_KEY = i-am-a-special-key-string
PORT = 3000
To access general vehicle data go to:
GET /api/
Argument | Type | Description |
---|---|---|
key |
string |
SHA256 API Key |
In order to authenticate the request, copy the sha256 code logged in the console and use it as a body request.