From 093acf2c41f9bdac2fbed55ac2f5f1af3f11a43d Mon Sep 17 00:00:00 2001
From: zolij <zolij86@gmail.com>
Date: Sun, 26 Jan 2014 23:19:53 +0100
Subject: [PATCH] =?UTF-8?q?API=20el=C3=A9r=C3=A9s?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 php/AuthSCHClient.class.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/php/AuthSCHClient.class.php b/php/AuthSCHClient.class.php
index 8a9d6ee..b405fbe 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
-- 
GitLab