diff --git a/php/AuthSCHClient.class.php b/php/AuthSCHClient.class.php index 8a9d6eeb50afbc093d81043b0a883fb1b1fea2db..b405fbe54561429a6ccd735e5c815eae368a2c5a 100644 --- a/php/AuthSCHClient.class.php +++ b/php/AuthSCHClient.class.php @@ -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