Categories

Using the following API requests, you can retrieve all categories that have medias associated.

method: GET
URL: /categories.json

PARAMETERS:
{
  “media”: false # Mandatory
}
RETURN:
{
  "page": "categories",
  "categories": [
    {
      “Category information” 
    }
  ]
}

Next you can get a specific category using its ID.

method: GET
URL: /categories/ID.json # ID – text

PARAMETERS:
{
  “media_page”: “NUMBER” # Pagination, starting on 1 (if 0 or null, no pagination) 
}
RETURN:
{
  "page": "category",
  “category”: 
  {
    "id": "ID", # text
    "name": "TEXT",
    "thumb": “THUMBNAIL URL”
  },
  "medias": [
    {
      “MEDIA INFO” 
    }
  ],
  "pagination": {
    "current": “NUMBER”, # Current page
    "last": true/false # If last page, true
  }
}








<< Previous topic Next topic >>