getProfile() public method

Return the Gravatar profile information as an array.
public getProfile ( string $mail ) : array
$mail string The mail address.
return array The profile information.
Esempio n. 1
0
<?php

require_once 'Horde/Autoloader/Default.php';
$g = new Horde_Service_Gravatar();
print Horde_Yaml::dump($g->getProfile('*****@*****.**'));
Esempio n. 2
0
 public function testGetProfile()
 {
     $g = new Horde_Service_Gravatar($this->_server);
     $profile = $g->getProfile('*****@*****.**');
     $this->assertEquals('http://gravatar.com/abc1xyz2', $profile['entry'][0]['profileUrl']);
 }