diff --git a/src/Base.php b/src/Base.php index 33fd032..6eb43f4 100644 --- a/src/Base.php +++ b/src/Base.php @@ -27,6 +27,10 @@ public static function defaultRequest(String $method, String $base_uri, String $ $request = new Request($method, $action, $headers, json_encode($body)); // create request $response = $client->send($request); // send request + if(isset(explode("?", $action)[0]) and explode("?", $action)[0] === 'getQrCode'){ + return $response->getBody()->getContents(); + } + return json_decode($response->getBody()->getContents()); // return response object } catch (ClientException $e) {