Skip to content

Commit f650aaf

Browse files
committed
Merge pull request #35 from Netifriik/master
#32
2 parents 628a8a5 + 51d8a04 commit f650aaf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/Syntax/SteamApi/Client.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
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;
7-
use Guzzle\Http\Exception\ClientErrorResponseException;
8-
use Guzzle\Http\Exception\ServerErrorResponseException;
8+
use GuzzleHttp\Exception\ClientErrorResponseException;
9+
use GuzzleHttp\Exception\ServerErrorResponseException;
910
use Syntax\SteamApi\Exceptions\ApiCallFailedException;
1011
use 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

Comments
 (0)