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

Linear category

Note: Only Movida accounts configured for Planning will expose linear categories in the API.

The linear category resource refers to the category a linear program belongs to. Linear categories belong to a specific channel.

This is how a Linear program looks through the API:

<?xml version="1.0" encoding="UTF-8"?>
<linear-category>
  <id type="integer">128</id>
  <name>The Grimes</name>
  <link rel="self" href="https://movida.bebanjo.net/api/linear_categories/128"/>
  <link rel="channel" href="https://movida.bebanjo.net/api/linear_channels/497"/>
</linear-category>

Valid attributes

  • id (read only): Movida internal identifier of the linear category.

  • name (read only): the name of the linear category.

  • channel: The linear channel the linear category belongs to.

Get a list of all linear categories in a linear channel

Linear categories are linked from a linear channel resource, through the link identified with the rel="linear_categories" attribute:

$ curl --digest -u robot_user:password "https://movida.bebanjo.net/api/linear_channels/496/linear_categories"

And would yield something like:

<?xml version="1.0" encoding="UTF-8"?>
<linear-categories type="array">
  <linear-category>
    <id type="integer">113</id>
    <name>Engie Benjy</name>
    <link rel="self" href="https://movida.bebanjo.net/api/linear_categories/113"/>
    <link rel="channel" href="https://movida.bebanjo.net/api/linear_channels/497"/>
  </linear-category>
  <linear-category>
    <id type="integer">114</id>
    <name>Florrie's Dragon's</name>
    <link rel="self" href="https://movida.bebanjo.net/api/linear_categories/114"/>
    <link rel="channel" href="https://movida.bebanjo.net/api/linear_channels/497"/>
  </linear-category>
  <!-- ... -->

Last updated April 01th, 2021.