Return the Gravatar profile information as an array.
public getProfile ( string $mail ) : array | ||
string | The mail address. | |
리턴 | array | The profile information. |
<?php require_once 'Horde/Autoloader/Default.php'; $g = new Horde_Service_Gravatar(); print Horde_Yaml::dump($g->getProfile('*****@*****.**'));
public function testGetProfile() { $g = new Horde_Service_Gravatar($this->_server); $profile = $g->getProfile('*****@*****.**'); $this->assertEquals('http://gravatar.com/abc1xyz2', $profile['entry'][0]['profileUrl']); }