Data Objects

The following is an overview of the data structures returned.

User

{
  "avatar": "https://armatars.armorgames.com/armatar_471_50.50_c.png",
  "avatar_lg": "https://armatars.armorgames.com/armatar_471_200.200_c.png",
  "avatar_med": "https://armatars.armorgames.com/armatar_471_100.100_c.png",
  "birthday": "0000-00-00",
  "created_on": 1227042121,
  "gender": "Male",
  "premium": false,
  "uid": "0e40633762349042f29f4394b3ac5ce8",
  "username": "ferret"
}

Purchase

An unlockable product.

{
  "product": {
    "created_on": "2016-10-31 13:54:14",
    "data": [],
    "description": "Test item",
    "display_order": 0,
    "id": 309,
    "media": {
      "image": "product-images/q45YzAgUSe6DFORQVdFv_ninja.gif?v=1477950759"
    },
    "name":"unlockable",
    "price":"0.99",
    "sku":"ajt-unlockable",
    "status":"active",
    "type":"unlockable",
    "updated_on":"2016-10-31 13:54:14"
  },
  "purchase": {
    "data": true,
    "success": true
  }
}

A consumable product.

{
  "product": {
    "created_on": "2016-10-31 13:54:14",
    "data": {
      "consumable_qty": 1
    },
    "description": "Consumable item test",
    "display_order": 0,
    "id": 310,
    "media": {
      "image": "product-images/OV0cKkHkSo6SVvWxmEuR_ninja.gif?v=1477950854"
    },
    "name":"consumable",
    "price":"0.99",
    "sku":"ajt-consumable:1",
    "status":"active",
    "type":"consumable",
    "updated_on":"2016-10-31 13:54:14"
  },
  "purchase": {
    "data": false,
    "success": false
  }
}