Skip to content

Screenings API

Goran Nikic edited this page Feb 12, 2018 · 1 revision

The Screenings API contains all of the Screenings in the OC API

List All Users

GET /screenings Returns a Paged Result containing the list of Actors.

Filters

  • "user_id" - String - The user who setup/purchased the screening
  • "movie_id" - String - The movie which is being shown
  • "license_id" - String - The ID of the license which was issued to this screening
  • "payed" - Numeric - Whether this screening has been paid for (license) or not (1,0)

Get a User By ID

GET /screenings/get/:id

Response

{
    "status": "OK",
    "code": 200,
    "messages": "common.SUCCESSFUL_REQUEST",
    "data": {
        "id": 24,
        "user_id": 45,
        "movie_id": 6551,
        "license_id": 9,
        "venue_id": 28,
        "seats": 140,
        "price": 6,
        "payed": 1,
        "created_at": "2016-02-24",
        "payed_at": "2016-02-24 19:51:25",
        "status": 1,
        "scheduled_time": "18:00:00",
        "scheduled_date": "2016-04-04",
        "transaction_id": "na"
    }
}

Clone this wiki locally