/** * Get Avatar from remote site pointed by URL * Adapters may wish to override this to access protected resource. * * @throws OAuth2_Exception * @param string $url * @param array $params Authentication Parameters * @return string|bool */ public function getAvatar($url, $params) { $info = array(); $result = OAuth2_CURL::HttpRequest($url, null, OAuth2_CURL::HTTP_METHOD_GET, null, $info); if ($info['http_code'] != '200') { OAuth2::log($url . ': bad statuscode ' . $info['http_code']); return false; } return $result; }