Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use GuzzleHttp\Client;
- $client = new Client(['base_uri' => 'xxx']);
- $username = "xxx";
- $password = "xxx";
- $action = "xxx.xml?xxx=xxx&username={$username}&password={$password}";
- $response = $client->get($action);
- $data = $response->getBody();
- echo "{$data}";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement