We use cookies (just for analytics) on this website. If you continue we will assume you are happy with it. ok

BeBanjo

Back to index

Requirement

The requirement resource describes some high level attributes of a platform, such as the business model, or the territory.

A requirement looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<requirement>
  <id type="integer">123</id>
  <category>business_model</category>
  <value>SVOD</value>
</requirement>

Valid attributes

  • category (required): Type of requirement.

  • value (required): Value for that type of requirement.

Get the requirements from a company

In the root resource, just do a GET to the URL in the requirements link:

<?xml version='1.0' encoding='utf-8' ?>
<movida>
  ...
  <link rel="requirements" href="https://movida.bebanjo.net/api/requirements"/>
  ... 
</movida>
$ curl --digest -u robot_user https://movida.bebanjo.net/api/requirements

And:

<?xml version="1.0" encoding="UTF-8"?>
<requirements type="array">
  <requirement>
    <id type="integer">9</id>
    <category>business_model</category>
    <value>TVOD</value>
  </requirement>
  <requirement>
    <id type="integer">10</id>
    <category>business_model</category>
    <value>SVOD</value>
  </requirement>
  <requirement>
    <id type="integer">11</id>
    <category>network</category>
    <value>Disney Channel</value>
  </requirement>
  <requirement>
    <id type="integer">12</id>
    <category>network</category>
    <value>Disney Junior</value>
  </requirement>
</requirements>

Get the requirements from a platform

Given an existing platform, just do a GET to the URL in the requirements link:

<?xml version='1.0' encoding='utf-8' ?>
<platform>
  <name>BeBanjo Movies</name>
  <link rel="requirements" href="https://movida.bebanjo.net/api/platforms/1/requirements"/>
  ... 
</platform>
$ curl --digest -u robot_user https://movida.bebanjo.net/api/platforms/1/requirements

And:

<?xml version="1.0" encoding="UTF-8"?>
<requirements type="array">
  <requirement>
    <id type="integer">10</id>
    <category>business_model</category>
    <value>SVOD</value>
  </requirement>
  <requirement>
    <id type="integer">11</id>
    <category>network</category>
    <value>Disney Channel</value>
  </requirement>
</requirements>

Last updated September 19th, 2017.