1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-04 18:29:40 +02:00
ampache/modules/Tmdb/Api/Configuration.php
Afterster d842ebbb00 Add art on Videos
Add videos support to Subsonic and UPnP APIs
Update Tmdb module
2014-07-06 20:46:46 +02:00

47 lines
1.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* This file is part of the Tmdb PHP API created by Michael Roterman.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package Tmdb
* @author Michael Roterman <michael@wtfz.net>
* @copyright (c) 2013, Michael Roterman
* @version 0.0.1
*/
namespace Tmdb\Api;
/**
* Class Configuration
* @package Tmdb\Api
*
* @see http://docs.themoviedb.apiary.io/#configuration
*/
class Configuration extends AbstractApi
{
/**
* Get the system wide configuration information.
*
* Some elements of the API require some knowledge of this configuration data.
*
* The purpose of this is to try and keep the actual API responses as light as possible.
* It is recommended you store this data within your application and check for updates every so often.
*
* This method currently holds the data relevant to building image URLs as well as the change key map.
*
* To build an image URL, you will need 3 pieces of data.
* The base_url, size and file_path.
*
* Simply combine them all and you will have a fully qualified URL. Heres an example URL:
*
* http://d3gtl9l2a4fn1j.cloudfront.net/t/p/w500/8uO0gUM8aNqYLs1OsTBQiXu0fEv.jpg
*
* @param array $headers
* @return mixed
*/
public function getConfiguration(array $headers = array())
{
return $this->get('configuration', array(), $headers);
}
}