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:password https://movida.bebanjo.net/api/outlets
And:
<?xml version='1.0' encoding='utf-8' ?>
<outlets type='array'>
<outlet>
<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>
<outlet>
<name>YouTube</name>
<link rel="self" href="https://movida.bebanjo.net/api/outlets/2"/>
<link rel="platforms" href="https://movida.bebanjo.net/api/outlets/2/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:password https://movida.bebanjo.net/api/outlets/1
And:
<?xml version='1.0' encoding='utf-8' ?>
<outlet>
<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>
Last updated April 01th, 2021.