Commit 38c4cca3 authored by zolij's avatar zolij

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

parent 093acf2c
......@@ -34,8 +34,6 @@ class AuthSCHClient {
} else {
$this->tokens = $tokens;
}
return $this->getData();
}
public function __destruct() {
......@@ -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));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment