- file_get_contents: documentation ( source)
- json_decode: documentation ( source)
<?php
$string = file_get_contents("https://sbux-card.azurewebsites.net/?card_number=XXXXXXXX&pin=YYYYYYY");
$json_a = json_decode($string, true);
echo $json_a['bal'];
echo $json_a['lastUpdated'];