API for identification, personal data registration or signature of documents, the identification is like 2FA, and all is supported by TRON Blockchain.
For implementing the API, you must to insert following lines:
In the HEAD
<script src="jquery-qrcode-0.14.0.min.js" ></script>
<script src="/api/js/apisummatron.js" ></script><br>
In the BODY, in the place where you want to show the QR
<div id="PanelIRS" style="display:block;"></div> //With the css control when show or hide it.
At the end of the HTML insert this code
<script>
$("#PanelIRS").load("/api/PanelIRS.html", function() {
sCuenta = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
Verificar(sCuenta,"ES","FUNCTION to EXECUTE");
});
</script>
This script show the QR who has the TRON account of the company. "ES" o "EN", select the languaje of the messages. "FUNCTION to EXECUTE" is the name of the function that the script will execute when the identification process finish. This process return the account of the sender or a string empty, if after 60 seconds there isn't identification.
VERY IMPORTANT
To be able to use SummaTRON-API you must register the name of the company that will be used as part of the key that is sent in the identification process.
This process is done by sending 1 SummaTRON from the company's account, which must then be included in the call to the Verify () function, to the project account: TFQwLDzUvEc99ktd3TvUc9g3uATGmX2fS7 , and it is also very important, to indicate in the description the name of the company, we suggest that it be the domain name.
You can get all the information about SummaTRON-API proyect in our whitepaper.