Pull data from a page

0

I'm trying to pull the name and date of birth of my clients from my WEB page, but it's just pulling the balance and not the name (PHP).

  

PHP PART

curl_setopt($ch, CURLOPT_URL, 'https://conta.ebanx.com/api/v1/timeline');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
        curl_setopt($ch, CURLOPT_HTTPHEADER, array(
            'Host: conta.ebanx.com',
            'Content-Type: application/json; charset=UTF-8',
            'Connection: keep-alive',
            'Authorization: Bearer '.$token.''
            ));

    $d5 = curl_exec($ch);
    $saldo = getstr($d5, 'balance":', ',');
    $nome = getstr($d5, 'full_name":', ',');
    if (strpos($d5, '{"name":"')) {
        print ("<font><font style='color: lime;'>INFO ✓ $nome » $saldo </font>");
    } else {
  

HTML PART

<!DOCTYPE html><html lang="en"><head><script>dataLayer = [{
  'short_name': "Talita",
  'full_name': "Talita Aranda",
  'locale': "pt-BR",
  'balance': "1.43",
  'balance_formatted': "US$ 1,43",
  'status_account': "Active",
  'has_edc': "No"
}];

"Oh, why else pull this data from authenticated clients?" A: This is to help in saving the balance of the same, always contacting them about any queries

    
asked by anonymous 27.12.2017 / 23:37

0 answers