Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. <?php
  2.  
  3. use GuzzleHttp\Client;
  4.  
  5. $client = new Client(['base_uri' => 'xxx']);
  6.  
  7. $username = "xxx";
  8. $password = "xxx";
  9. $action = "xxx.xml?xxx=xxx&username={$username}&password={$password}";
  10.  
  11. $response = $client->get($action);
  12. $data = $response->getBody();
  13.  
  14. echo "{$data}";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement