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

fixes #1

parent 96c578c1
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,11 @@ class AuthSCHClient {
}
public function getData() {
$response = @file_get_contents(self::$host . 'api/profile/?access_token=' . $this->tokens->access_token);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, self::$host . 'api/profile/?access_token=' . $this->tokens->access_token);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
if(isset($response) && $response !== false && !empty($response)) {
$data = json_decode($response);
if($data !== null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment