Advertisement
Guest User

Untitled

a guest
Jan 30th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. $response = $client->get('http://localhost:8080/Extranet/login',
  2. [
  3. 'auth' => [
  4. 'nobili.andrea@gmail.com',
  5. 'pswd'
  6. ]
  7. ]);
  8.  
  9. $dettagliLogin = json_decode($response->getBody());
  10.  
  11. Log::info('response: '.(json_encode($dettagliLogin)));
  12.  
  13. $response = $client->get('http://localhost:8080/Extranet/login',
  14. [
  15. 'auth' => [
  16. //'nobili.andrea@gmail.com',
  17. //'pswd'
  18. $credentials['email'] . ','
  19. .$credentials['password']
  20. ]
  21. ]);
  22.  
  23. $dettagliLogin = json_decode($response->getBody());
  24.  
  25. Log::info('response: '.(json_encode($dettagliLogin)));
  26.  
  27. 'nobili.andrea@gmail.com',
  28. 'pswd'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement