File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 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 ;
78use Guzzle \Http \Exception \ClientErrorResponseException ;
@@ -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
You can’t perform that action at this time.
0 commit comments