lib/opauth/Strategy/Github/GithubStrategy.php
private function user($access_token) {
		$user = $this->serverGet('https://api.github.com/user', array('access_token' => $access_token), null, $headers);

		if (!empty($user)) {
			return $this->recursiveGetObjectVars(json_decode($user));
		}
		else {
			$error = array(
				'code' => 'userinfo_error',
				'message' => 'Failed when attempting to query GitHub v3 API for user information',
				'raw' => array(
					'response' => $user,
					'headers' => $headers
				)
			);

			$this->errorCallback($error);
		}
	}
private function user($access_token) {
		$user = $this->serverGet('https://api.github.com/user', array('access_token' => $access_token), null, $headers);

		if (!empty($user)) {
			return $this->recursiveGetObjectVars(json_decode($user));
		}
		else {
			$error = array(
				'code' => 'userinfo_error',
				'message' => 'Failed when attempting to query GitHub v3 API for user information',
				'raw' => array(
					'response' => $user,
					'headers' => $headers
				)
			);

			$this->errorCallback($error);
		}
	}
private function user ( $ access_token ) { $ user = $ this -> serverGet ( 'https://api.github.com/user' , array ( 'access_token' => $ access_token ) , null , $ headers ) ; if ( ! empty ( $ user ) ) { return $ this -> recursiveGetObjectVars ( json_decode ( $ user ) ) ; } else { $ error = array ( 'code' => 'userinfo_error' , 'message' => 'Failed when attempting to query GitHub v3 API for user information' , 'raw' => array ( 'response' => $ user , 'headers' => $ headers ) ) ; $ this -> errorCallback ( $ error ) ; } }
Queries GitHub v3 API for user info

@param string $access_token
@return array Parsed JSON results
Queries GitHub v3 API for user info