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

API elérés

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