From d77fa08766652550b7d40dd584b1982f0fb0711b Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 25 Oct 2018 22:13:05 -0500 Subject: [PATCH] more guzzle shit --- app/Library/MoonCalc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Library/MoonCalc.php b/app/Library/MoonCalc.php index 198807a02..1a73e62a2 100644 --- a/app/Library/MoonCalc.php +++ b/app/Library/MoonCalc.php @@ -116,9 +116,9 @@ class MoonCalc { //Base url is https://market.fuzzwork.co.uk/aggregates/?region=10000002&types=34 //Going to use curl for these requests foreach($ItemIDs as $key => $value) { - $client = new Client(); - $url = 'https://market.fuzzwork.co.uk/aggregates/?region=10000002&types=' . $value; - $result = $client->request('GET', $url); + $client = new Client(['base_uri' => 'https://market.fuzzwork.co.uk/aggregates/']); + $uri = '?region=10000002&types=' . $value; + $result = $client->request('GET', $uri); $item = $result->getBody(); dd($item); DB::table('Prices')->insert([