Skip to content

Node.js NIU e-scooter cloud data api | Modified to support web requests

License

Notifications You must be signed in to change notification settings

gabrielvfonseca/niu-cloud-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NIU CLOUD API

Node.js web API to display NIU e-scooter cloud data.
NIU Cloud access made by: @BlueAndi

License Repo Status

Instalation

Install & run project using npm.

  cd my-project
  npm install
  npm start

Environment

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@example.com
  API_PWD = *******
  API_COUNTRY_CODE = 351
  API_KEY = i-am-a-special-key-string
  PORT = 3000

Documentation

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.

About

Node.js NIU e-scooter cloud data api | Modified to support web requests

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%