Philusha1983/pub-display-plaato-taplist

Hide Token number from frontend using PHP

Opened this issue · 0 comments

<?php
// Calling the API 
$beer_name = file_get_contents("http://plaato.blynk.cc/[Token]/get/v64");
?>
// Shows only result
<?php echo($beer_name)?>

Calling the API with token inside the PHP will hide the API call with private token fron the front end.
Direct access to PHP file will show only the result of the API call.
The HTML file should be rewritten to get info from the PHP files and not directly from the API call.