public function getProfile() { $token = $this->parseToken(); $profileUrl = $this->profile . "=" . $token; $curl = new ccurl($profileUrl); $curl->addHeader($this->header . " " . $token); $curl->createCurl(); $this->profileData = json_decode((string) $curl, true); return (string) $curl; }
public function getProfile() { $token = $this->parseToken(); $profileUrl = $this->profile . "?fields=first_name,last_name,name,email,age_range&access_token=" . $token; $curl = new ccurl($profileUrl); $curl->createCurl(); $ret = (string) $curl; $this->profileData = json_decode($ret, true); return $ret; }