Difference between revisions of "NPS-API Webservice"
(Created page with "== Webservice == Webservice is a computer communications protocol, providing full-duplex communication channels over a single TCP connection.<br> The Webservice protocol enabl...") |
|||
Line 6: | Line 6: | ||
<strong>telnet serv.nptracker.co.za 40</strong> | <strong>telnet serv.nptracker.co.za 40</strong> | ||
* You will then be welcomed please authenticate it with your token | * You will then be welcomed please authenticate it with your token | ||
− | $>AUTH {API-Key} | + | $> <strong>AUTH</strong> {API-Key} |
* You can now start testing plates. | * You can now start testing plates. | ||
− | $>test abc123gp | + | $><strong>test abc123gp</strong> |
* It will return with the plate followed by a true or false true being there is a report for the plate and false not | * 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. | * If you found a plate to get a report on just do. | ||
− | $>nps abc123gp | + | $><strong>nps abc123gp</strong> |
Revision as of 07:33, 18 April 2019
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