When making the games.getLibrary API call, you will notice that there is a category ID field and filter option. This is referring to the NewHaze categories. These are listed below for you so you can use this method properly.
| Category ID | Category Name |
| 1 | Action |
| 2 | Adventure |
| 3 | Board Game |
| 4 | Casino |
| 5 | Driving |
| 6 | Fighting |
| 7 | Puzzles |
| 8 | Shooting |
| 9 | Sports |
| 10 | Arcade |
| 11 | Not Games |
| 12 | Other |
You may find it useful to have this PHP function. It takes a NewHaze default category ID and outputs its name.
<?php
function nhcategory($cid, $linked=true) {
$cats = array(1=>'Action','Adventure','Board Game','Casino','Driving','Fighting','Puzzles','Shooting',
'Sports','Arcade','Not Games','Other');
if($cid>0 and $cid<13) {
if($linked){
$output="<a href=\"http://www.newhaze.com/games.php?cat=$cid\">".$cats[$cid]."</a>";
}else{
$output=$cats[$cid];
}
return $output;
}
}
?>
© 2012 NewHaze Icons by Pixel Mixer Help