NPS-API Webservice
Webservice
Webservice is a computer communications protocol, providing full-duplex communication channels over a single TCP connection.
The Webservice protocol enables interaction between a client-side application and a web server with lower overheads, facilitating real-time data transfer from and to the server. This is made possible by providing a standardized way for the server to send content to the client without being first requested by the client, and allowing messages to be passed back and forth while keeping the connection open. In this way, a two-way ongoing conversation can take place between the client and the server. The communications are done over TCP port number 40.
Example (telnet)
- Open a connection to the server (serv.nptracker.co.za) port 40
telnet serv.nptracker.co.za 40
- You will then be welcomed please authenticate it with your token
$>AUTH {API-Key}
- You can now start testing plates.
$>test abc123gp
- It will return with the plate followed by a true or false true being there is a report for the plate and false not
- If you found a plate to get a report on just do.
$>nps abc123gp