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

Outlet

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

An outlet represents the means by which Movida talks to a particular real platform.

In Movida land, an outlet looks like this:

<?xml version='1.0' encoding='utf-8' ?>
<outlet>
  <id type="integer">1</id>
  <name>BeBanjo Movies</name>
  <link rel="self" href="https://movida.bebanjo.net/api/outlets/1"/>
  <link rel="platforms" href="https://movida.bebanjo.net/api/outlets/1/platforms"/>
</outlet>

Get a list of all outlets

As you would expect, just do a GET /api/outlets:

$ curl --digest -u robot_user https://movida.bebanjo.net/api/outlets

And:

<?xml version='1.0' encoding='utf-8' ?>
<outlets type='array'>
  <outlet>
    <name>BeBanjo Movies</name>
    <link href="https://movida.bebanjo.net/api/outlets/1" rel="self"/>
    <link href="https://movida.bebanjo.net/api/outlets/1/platforms" rel="platforms"/>
  </outlet>
  <outlet>
    <name>YouTube</name>
    <link href="https://movida.bebanjo.net/api/outlets/2" rel="self"/>
    <link href="https://movida.bebanjo.net/api/outlets/2/platforms" rel="platforms"/>
  </outlet>
</outlets>

Then follow the links to access their platforms.

Get a single outlet

Just do a GET to the URL of the outlet:

$ curl --digest -u robot_user https://movida.bebanjo.net/api/outlets/1

And:

<?xml version='1.0' encoding='utf-8' ?>
<outlet>
  <name>BeBanjo Movies</name>
  <link href="https://movida.bebanjo.net/api/outlets/1" rel="self"/>
  <link href="https://movida.bebanjo.net/api/outlets/1/platforms" rel="platforms"/>
</outlet>

Last updated September 19th, 2017.