Commit 093acf2c authored by zolij's avatar zolij

API elérés

parent b8512f53
......@@ -35,7 +35,7 @@ class AuthSCHClient {
$this->tokens = $tokens;
}
return $this->tokens;
return $this->getData();
}
public function __destruct() {
......@@ -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
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