11<?php namespace Syntax \SteamApi ;
22
33use stdClass ;
4- use Guzzle \Http \Client as GuzzleClient ;
4+ use GuzzleHttp \Client as GuzzleClient ;
5+ use GuzzleHttp \Psr7 \Request ;
56use Exception ;
67use Illuminate \Support \Facades \Config ;
7- use Guzzle \ Http \Exception \ClientErrorResponseException ;
8- use Guzzle \ Http \Exception \ServerErrorResponseException ;
8+ use GuzzleHttp \Exception \ClientErrorResponseException ;
9+ use GuzzleHttp \Exception \ServerErrorResponseException ;
910use Syntax \SteamApi \Exceptions \ApiCallFailedException ;
1011use Syntax \SteamApi \Exceptions \ClassNotFoundException ;
1112
@@ -45,7 +46,7 @@ public function __construct()
4546 {
4647 $ apiKey = $ this ->getApiKey ();
4748
48- $ this ->client = new GuzzleClient ($ this -> url );
49+ $ this ->client = new GuzzleClient ();
4950 $ this ->apiKey = $ apiKey ;
5051
5152 // Set up the Ids
@@ -89,7 +90,7 @@ protected function setUpService($arguments = null)
8990 $ parameters = http_build_query ($ parameters );
9091
9192 // Send the request and get the results
92- $ request = $ this -> client -> get ( $ steamUrl . '? ' . $ parameters );
93+ $ request = new Request ( ' GET ' , $ steamUrl . '? ' . $ parameters );
9394 $ response = $ this ->sendRequest ($ request );
9495
9596 // Pass the results back
@@ -114,7 +115,7 @@ protected function setUpClient(array $arguments = [])
114115 $ parameters = http_build_query ($ parameters );
115116
116117 // Send the request and get the results
117- $ request = $ this -> client -> get ( $ steamUrl . '? ' . $ parameters );
118+ $ request = new Request ( ' GET ' , $ steamUrl . '? ' . $ parameters );
118119 $ response = $ this ->sendRequest ($ request );
119120
120121 // Pass the results back
0 commit comments