Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. error: Unable to establish session
  2.  
  3. array(1) {
  4.  
  5. $url = "http://127.0.0.1:3000/merchant/MY-GUID/login?password=MYPASS&api_code=MY-API-CODE";
  6. $ch = curl_init();
  7. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  8. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  9. curl_setopt($ch, CURLOPT_URL, $url);
  10. $ccc = curl_exec($ch);
  11. $json = json_decode($ccc, true);
  12. echo "<pre>";
  13. var_dump($json);
  14. echo "</pre>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement