Skip to content

Structures

Nasir edited this page Sep 14, 2016 · 2 revisions

This document lists the objects returned from the API Methods.

Overview

Anime Object

Attributes

  • id
  • title Main title
  • alt_title Alternative title (can be null)
  • season Anime season number
  • ongoing Whether the anime is ongoing or not 0 or 1
  • description
  • hb_id Hummingbird ID
  • created_at Date in YYYY-MM-DD HH:MI:SS
  • updated_at Date in YYYY-MM-DD HH:MI:SS
  • hidden whether the anime should be hidden or not 0 or 1
  • slug slug object (Only if applicable)
  • episodes list of episode objects (Only if applicable)

Sample response

  {
    "id": 203,
    "title": "07-Ghost",
    "alt_title": null,
    "season": 1,
    "ongoing": 0,
    "description": "...",
    "hb_id": 4135,
    "created_at": "2016-08-12 00:56:52",
    "updated_at": "2016-08-14 12:02:47",
    "hidden": 0,
    "slug": { },
    "episodes": [ ]
  }

Slug Object

Attributes

  • id
  • slug
  • anime_id
  • created_at Date in YYYY-MM-DD HH:MI:SS
  • updated_at Date in YYYY-MM-DD HH:MI:SS

Sample response

  {
    "id": 203,
    "slug": "07-ghost",
    "anime_id": 203,
    "created_at": "2016-08-12 00:56:52",
    "updated_at": "2016-08-12 00:56:52"
  }

Episode Object

Attributes

  • id
  • source video source either a relative path to the Anime Twist domain or absolute path
  • number episode number to display
  • anime_id
  • created_at Date in YYYY-MM-DD HH:MI:SS
  • updated_at Date in YYYY-MM-DD HH:MI:SS

Sample response

  {
    "id": 11670,
    "source": "/anime/07ghost/07ghost-0001.mp4",
    "number": 1,
    "anime_id": 203,
    "created_at": "2016-08-20 12:33:12",
    "updated_at": "2016-08-20 12:33:12"
  }

Clone this wiki locally