Skip to content
Snippets Groups Projects
Commit 38c4cca3 authored by Janega Zoltán's avatar Janega Zoltán
Browse files

getData publikussá tétele a kívülről történő híváshoz

parent 093acf2c
No related branches found
No related tags found
No related merge requests found
...@@ -34,8 +34,6 @@ class AuthSCHClient { ...@@ -34,8 +34,6 @@ class AuthSCHClient {
} else { } else {
$this->tokens = $tokens; $this->tokens = $tokens;
} }
return $this->getData();
} }
public function __destruct() { public function __destruct() {
...@@ -96,7 +94,7 @@ class AuthSCHClient { ...@@ -96,7 +94,7 @@ class AuthSCHClient {
} }
private function getData() { public function getData() {
return json_decode(file_get_contents(self::$host . 'api/view/scope/' . self::$scope . '?access_token=' . $this->tokens->access_token)); return json_decode(file_get_contents(self::$host . 'api/view/scope/' . self::$scope . '?access_token=' . $this->tokens->access_token));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment