Skip to content

Commit 9056689

Browse files
committed
fixes #32
GuzzleClient changes
1 parent 628a8a5 commit 9056689

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Syntax/SteamApi/Client.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php namespace Syntax\SteamApi;
22

33
use stdClass;
4-
use Guzzle\Http\Client as GuzzleClient;
4+
use GuzzleHttp\Client as GuzzleClient;
5+
use GuzzleHttp\Psr7\Request;
56
use Exception;
67
use Illuminate\Support\Facades\Config;
78
use 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

0 commit comments

Comments
 (0)