Emblem
Get Emblem returns a Spartans chosen emblem as an image.
$getEmblem = $oHaloApi->getEmblem(512); (512 is Size of Image)
How to Consume within Web Page.
<?php echo $getEmblem; ?>
https://image.halocdn.com/h5/emblems/196_48_48_21?width=512&hash=RgoH8E%2b6CCBbM3rmHdwdRpas%2bH7izga8KFUc6riiGzs%3d
Spartan Img
Get Image returns a Spartans Player ID Image
$getImage = $oHaloApi->getSpartanImg(512); (512 is Size of Image)
How to Consume within Web Page.
<?php echo $getImage; ?>
https://image.halocdn.com/h5/spartans/1086001_0_2082001_3020_57_33?width=512&crop=Full&api-version=2016-01-26&hash=orS9FRtPHl%2fklUNcOK3H7epe4imvLCjYJrQd0irOscg%3d
Commendations
Get Image returns a Spartans Player ID Image
$comms = $oHaloApi->getCommendations();)
Medals
Create Medal object
$medalObject = $oHaloApi->getMedals();
How to Grab Desired Medal Sprite Image
$spriteName = $medalObject[0][name];
$spriteURI = $medalObject[0][spriteLocation][spriteSheetUri];
$left = $medalObject[0][spriteLocation][left];
$top = $medalObject[0][spriteLocation][top];
([arrayIndexOdMedal])
Service Record
*Create Arena Stats Object
$arenaStats = $oHaloApi->getServiceRecords("arena");
How to Grab Desired Medal Sprite Image
$totalHeadShots = $arenaStats[Results][0][Result][ArenaStats][TotalHeadshots];
$totalWeaponDamage = $arenaStats[Results][0][Result][ArenaStats][TotalWeaponDamage];
$totalShotsFired = $arenaStats[Results][0][Result][ArenaStats][TotalShotsFired];
$totalShotsLanded = $arenaStats[Results][0][Result][ArenaStats][TotalShotsLanded];
$medalAwards = $arenaStats[Results][0][Result][ArenaStats][MedalAwards];