Файл: vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/ClientInterface.php
Строк: 47
<?php
namespace OAuthCommonHttpClient;
use OAuthCommonHttpUriUriInterface;
use OAuthCommonHttpExceptionTokenResponseException;
/**
* Any HTTP clients to be used with the library should implement this interface.
*/
interface ClientInterface
{
/**
* Any implementing HTTP providers should send a request to the provided endpoint with the parameters.
* They should return, in string form, the response body and throw an exception on error.
*
* @abstract
* @param UriInterface $endpoint
* @param mixed $requestBody
* @param array $extraHeaders
* @param string $method
* @return string
* @throws TokenResponseException
*/
public function retrieveResponse(UriInterface $endpoint, $requestBody, array $extraHeaders = array(), $method = 'POST');
}