Skip to content

Latest commit

 

History

History
127 lines (84 loc) · 3.26 KB

ExportsApi.md

File metadata and controls

127 lines (84 loc) · 3.26 KB

MuxPhp\ExportsApi

All URIs are relative to https://api.mux.com, except if the operation defines another base path.

Method HTTP request Description
listExports() GET /data/v1/exports List property video view export links
listExportsViews() GET /data/v1/exports/views List available property view exports

listExports()

listExports(): \MuxPhp\Models\ListExportsResponse

List property video view export links

The API has been replaced by the list-exports-views API call. Lists the available video view exports along with URLs to retrieve them.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: accessToken
$config = MuxPhp\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new MuxPhp\Api\ExportsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->listExports();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ExportsApi->listExports: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\MuxPhp\Models\ListExportsResponse

Authorization

accessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

listExportsViews()

listExportsViews(): \MuxPhp\Models\ListVideoViewExportsResponse

List available property view exports

Lists the available video view exports along with URLs to retrieve them.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: accessToken
$config = MuxPhp\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new MuxPhp\Api\ExportsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->listExportsViews();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ExportsApi->listExportsViews: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\MuxPhp\Models\ListVideoViewExportsResponse

Authorization

accessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]