games.getLibrary

Introduction

Get and filter the games from the NewHaze game library. This is useful when creating an admin section or CMS. We do not recommend adding all the games in the library to your site, or building an automated system to add games to your site. We recommend selecting the games carefully.

Parameters

Name Type Description
cids string NewHaze category for games to be in. See NewHazeCategories
query string Search the results
limit int Number of games to return
offset int Offset for the games
maxdims string The maximum dimensions for the game you want. Either {width} or {width}x{height}
num bool Whether or not to return the total number of games matching the search terms

Using the PHP Library

<?php
$response
=$newhaze->api->games_getLibrary($cids=array(), $query, $limit, $offset, $maxdims,$num);
?>


© 2012 NewHaze   Icons by Pixel Mixer   Help