I am looking to build a new or tweak on some existing open source a scripts utilizing Sony's PlayStation Network API. The basic deliverable is a single script using PHP, XML to show when a playstation network user comes online and time stamp it, show what game user is playing and when user goes offline, time stamp it.
There is plenty of existing snippets and information about this on the web but I have not found a solid script to pull the basic user information over using xml.
The project should contain a simple form to enter a user PSID which would leverage a php function like below:
protected function _parseData($data)
{
$returnData = array(
'id' => (string)$data->ID,
'avatarSmall' => (string)$data->AvatarSmall,
'avatarMedium' => (string)$data->AvatarMedium,
'avatar' => (string)$data->Avatar,
'level' => (string)$data->Level,
'progress' => (string)$data->Progress,
'aboutme' => (string)$data->AboutMe,
'trophies' => array(
'earned' => (string)$data->Trophies->Earned,
'platinum' => (string)$data->Trophies->Platinum,
'gold' => (string)$data->Trophies->Gold,
'silver' => (string)$data->Trophies->Silver,
'bronze' => (string)$data->Trophies->Bronze,
'total' => (string)$data->Trophies->Total,
),
'status' => array(
'online' => (string)$data->Status->Online,
'away' => (string)$data->Status->Away,
),
'levelData' => array(
'points' => (string)$data->LevelData->Points,
'floor' => (string)$data->LevelData->Floor,
'ceiling' => (string)$data->LevelData->Ceiling,
'progress' => (string)$data->LevelData->Progress,
'level' => (string)$data->LevelData->level,
)
);
return $returnData;
}
Just to clarify since I can`t add to the a message..You won`t be able to get online status and game currently playing if they are not on your friend list..and if they are on your friend list you will need to sign in on psn site to get those information..there is no other way since when u turn on your ps3 you send information to other friend to say your online not the opposite..