Giter VIP home page Giter VIP logo

nzta.js's Introduction

NZTA.JS

This is a simple nodejs app for easily retrieving open bookings from the NZTA online drivers licence test api. In order to use this app the following are needed:

  • NZ Drivers licence (Any Type)
  • Node.JS
  • Twilio Account (optional)
  • Sendgrid Account (optional)

Quickstart

  1. Install Dependencies
npm i
or
yarn
  1. Create .env file in project and add credentials
#.env
# required
LICENCE_CODE=""
LICENCE_VERSION=""
LAST_NAME=""
# format dd-mm-yyyy eg.. 01-01-2001
DOB=""
#licence class is on the back of your licence
LICENCE_CLASS="1R"
#test site id
SITE_ID=""
#format dd/mm/yyyy
DATE_FROM=""
DATE_TO=""
# not required
API_REFER="[api referrer]",
SG_KEY = ""
AlERT_TO=""
ALERT_FROM=""
TWILIO_SID=""
TWILIO_TOKEN=""
WHATSAPP_TO=""
WHATSAPP_FROM=""
  1. Edit hosts
  • On windows( in admin powershell )
notepad.exe C:\Windows\System32\Drivers\etc\hosts

append "127.0.0.1 gen.nzta.govt.nz" to the end of the file and save

  • On linux open /etc/hosts and append text above
  1. Run
node find.js
>>> http://127.0.0.1:6677

open browser and visit gen.nzta.govt.nz:6677, complete the capthca and the program will log you in with the set credentials, check console for request successful message

nzta.js's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.