この stdClass 構造を考えると...
[RecentAchievements] => stdClass Object
(
[1446] => stdClass Object
(
[3319] => stdClass Object
(
[ID] => 3319
[GameID] => 1446
[Title] => Hello World!
[Description] => Complete World 1-1
[Points] => 15
[BadgeName] => 03909
[IsAwarded] => 1
[DateAwarded] => 2013-10-20 19:35:46
)
「タイトル」など、3319 内のオブジェクトを確認する必要があるため、次のようになります。
$data->RecentAchievements->$gameid->ACHVIDHERE->Title;
$gameid を取得するには、他のオブジェクト (RecentlyPlayed) から次のように取得します。
[RecentlyPlayed] => Array
(
[0] => stdClass Object
(
[GameID] => 1446
[ConsoleID] => 7
[ConsoleName] => NES
[Title] => Super Mario Bros
[LastPlayed] => 2013-10-20 21:38:22
[ImageIcon] => /Images/000385.png
[ImageTitle] => /Images/000272.png
[ImageIngame] => /Images/000387.png
[ImageBoxArt] => /Images/000275.png
)
)
$gameid = $data3->RecentlyPlayed['0']->GameID;
API では、実績 ID を取得するために同じ RecentPlayed を使用できません。RecentAchievements から抽出する必要があります。出来ますか?