Romulo
unread,May 4, 2011, 10:32:02 AM5/4/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Orkut php client
Eu tenho uma aplicação que algumas semanas passadas retornava o email
do usuario. Hoje não retorna mais.
Uma parte do meu codigo:
require_once("api/auth.php");
function okLogin($orkutApi){
$orkutApi->login();
}
function fetchUser($orkutApi){
$profileFields = array( 'displayName',
'thumbnailUrl',
'gender',
'name',
'emails'
);
$me = array('method' => 'people.get',
'params' => array('userId' => '@me', 'groupId' => '@self', 'fields'
=> $profileFields),
);
$orkutApi->addRequest($me,'self');
return $orkutApi->execute();
}
[...]
function getEmails($userData){
$temp = $userData['self']['data']['emails'];
$count = count($temp);
$emails = array();
for($i=0;$i<$count;$i++){
$emails[] = $temp[$i]['value'];
}
return $emails;
}