Fork me on GitHub

Gets a set of items. The returned set can be quite big, so it is paginated.

Parameters

Name Type Description
category string The slug of a category. If this param is set, the method will return the items from that specific category. If no category is provided, the method returns all known items.
license string The slug of a license. If this param is set, the resulting set is filted to contain items with the provided license only. If no license is provided, the filtering is not performed.
page int Number of the page to be returned. If this param is not set, the default value 0 (first page) will be used.
pagesize int The amount of items a returned page must have. If this param is not set, the default value 50 will be used.

Return

Requesting http://api.as3gamegears.com/1.0/items/engines will produce the following return:


{
  "total": "18",
  "page": 0,
  "pagesize": 50,
  "category": "engines",
  "items": [
    {
	"id": 20,
	"name": "Flixel",
	"description": "Flixel is collection of AS3 (...)",
	"excerpt": "Flixel is collection of AS3 files that helps organize, automate, and optimize Flash games.",
	"sample": "package { import org.flixel.*; (...)",
	"license": [
	    {
	      "id": 46,
	      "name": "MIT",
	      "slug": "mit"
	    }
	  ],
	"site": "http:\/\/flixel.org",
	"repository": "git:\/\/github.com\/AdamAtomic\/flixel.git",
	"twitter": "flixation",
	"stats": "flixel"
    },
	
	(...)
	
    {
      "id": 65,
      "name": "PixelBlitz",
      "description": "PixelBlitz Engine is a game framework for Actionscript3 created by (...)",
      "excerpt": "PixelBlitz Engine is a game framework for Actionscript3 (...)",
      "sample": "",
      "license": [
        {
          "id": 46,
          "name": "MIT",
          "slug": "mit"
        }
      ],
      "site": "http:\/\/code.google.com\/p\/pixelblitz",
      "repository": "http:\/\/pixelblitz.googlecode.com\/svn\/trunk\/",
      "twitter": "",
      "stats": "pixelblitz"
    }
  ]
}