mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-06 11:59:56 +02:00
44 lines
No EOL
1.3 KiB
PHP
44 lines
No EOL
1.3 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Performs requests on EchoNest API. API documentation should be self-explanatory.
|
|
*
|
|
* @author Brent Shaffer <bshafs at gmail dot com>
|
|
* @license MIT License
|
|
*/
|
|
interface EchoNest_HttpClientInterface
|
|
{
|
|
/**
|
|
* Send a GET request
|
|
*
|
|
* @param string $path Request path
|
|
* @param array $parameters GET Parameters
|
|
* @param string $httpMethod HTTP method to use
|
|
* @param array $options reconfigure the request for this call only
|
|
*
|
|
* @return array Data
|
|
*/
|
|
public function get($path, array $parameters = array(), array $options = array());
|
|
|
|
/**
|
|
* Send a POST request
|
|
*
|
|
* @param string $path Request path
|
|
* @param array $parameters POST Parameters
|
|
* @param string $httpMethod HTTP method to use
|
|
* @param array $options reconfigure the request for this call only
|
|
*
|
|
* @return array Data
|
|
*/
|
|
public function post($path, array $parameters = array(), array $options = array());
|
|
|
|
/**
|
|
* Change an option value.
|
|
*
|
|
* @param string $name The option name
|
|
* @param mixed $value The value
|
|
*
|
|
* @return EchoNest_HttpClientInterface The current object instance
|
|
*/
|
|
public function setOption($name, $value);
|
|
} |