Advertisement
renatinham

Untitled

May 26th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php
  2.  
  3. $curl = curl_init("https://api.pagar.me/1/bank_accounts?api_key=ak_test_bxTzgRSb04iMviJfDHCEUiqvrB0mrA");
  4. curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  5. $json = curl_exec($curl);
  6. curl_close($curl);
  7.  
  8. $encoded = json_decode($json);
  9.  
  10. echo $encoded->{'id'} . " <br>" . $encoded->{'bank_code'} . " <br> " . $encoded-> {'agencia'};
  11.  
  12.  
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement