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

Availability window

Note: This resource links can be expanded using the expand option.

An Availability Window, a.k.a Right Window, is the period where the current company has granted rights to schedule a title in one or several Platforms. Availability Windows are the result of applying a Right to each of its affected titles.

This is how an Availability Window looks through the API:

<?xml version="1.0" encoding="UTF-8"?>
<availability-window>
  <id type="integer">7381</id>
  <from type="datetime">2008-10-01T00:00:00+01:00</from>
  <to type="datetime">2013-09-30T23:59:59+01:00</to>
  <link href="http://movida.bebanjo.net/api/availability_windows/7381" rel="self"/>
  <link href="http://movida.bebanjo.net/api/titles/10" rel="title"/>
  <link href="http://movida.bebanjo.net/api/availability_windows/7381/platforms" rel="platforms"/>
</availability-window>

Get the list of availability windows of a title

Availability windows are accessed via a title. Refer to the title page to find out how to access a title. Inside a title, one of the related link nodes is the availability windows node, identified by the rel attribute. Like here:

<?xml version='1.0' encoding='utf-8' ?>
<title>
  <!-- ... -->
  <link href="http://movida.bebanjo.net/api/titles/10/availability_windows" rel="availability_windows"/>
  <!-- ... -->
</title>

If we follow that link, we’d fetch the list of all availability windows for that title.

$ curl --digest -u robot_user http://movida.bebanjo.net/api/titles/10/availability_windows
<availability-windows type="array">
  <availability-window>
    <id type="integer">7381</id>
    <from type="datetime">2008-10-01T00:00:00+01:00</from>
    <to type="datetime">2013-09-30T23:59:59+01:00</to>
    <link href="http://movida.bebanjo.net/api/availability_windows/7381" rel="self"/>
    <link href="http://movida.bebanjo.net/api/titles/10" rel="title"/>
    <link href="http://movida.bebanjo.net/api/availability_windows/7381/platforms" rel="platforms"/>
  </availability-window>
  <availability-window>
    <id type="integer">7382</id>
    <from type="datetime">2010-11-01T00:00:00+01:00</from>
    <to type="datetime">2011-11-30T23:59:59+01:00</to>
    <link href="http://movida.bebanjo.net/api/availability_windows/7382" rel="self"/>
    <link href="http://movida.bebanjo.net/api/titles/10" rel="title"/>
    <link href="http://movida.bebanjo.net/api/availability_windows/7382/platforms" rel="platforms"/>
  </availability-window>
</availability-windows>

Get a specific availability window

We can also fetch a specific window if we have its URL:

$ curl --digest -u robot_user http://movida.bebanjo.net/api/availability_windows/7381
<availability-window>
  <id type="integer">7381</id>
  <from type="datetime">2008-10-01T00:00:00+01:00</from>
  <to type="datetime">2013-09-30T23:59:59+01:00</to>
  <link href="http://movida.bebanjo.net/api/availability_windows/7381" rel="self"/>
  <link href="http://movida.bebanjo.net/api/titles/10" rel="title"/>
  <link href="http://movida.bebanjo.net/api/availability_windows/7381/platforms" rel="platforms"/>
</availability-window>

Last updated March 31st, 2017.