diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-04 21:33:05 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-04 21:33:05 -0500 |
commit | 135b921db75da5995eab7e36393ecd4d2b0bc66f (patch) | |
tree | 46efc60fcf1f9d5c57ab1fb9418c2acfbda0698a /vendor/OAuth/Common/Service/ServiceInterface.php | |
parent | 850645dd6b22f5b495d1680e0b49540e0ebf9bd3 (diff) |
Switch to composer
Diffstat (limited to 'vendor/OAuth/Common/Service/ServiceInterface.php')
-rwxr-xr-x | vendor/OAuth/Common/Service/ServiceInterface.php | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/vendor/OAuth/Common/Service/ServiceInterface.php b/vendor/OAuth/Common/Service/ServiceInterface.php deleted file mode 100755 index 5856a039..00000000 --- a/vendor/OAuth/Common/Service/ServiceInterface.php +++ /dev/null @@ -1,49 +0,0 @@ -<?php - -namespace OAuth\Common\Service; - -use OAuth\Common\Http\Uri\UriInterface; - -/** - * Defines methods common among all OAuth services. - */ -interface ServiceInterface -{ - /** - * Sends an authenticated API request to the path provided. - * If the path provided is not an absolute URI, the base API Uri (service-specific) will be used. - * - * @param string|UriInterface $path - * @param string $method HTTP method - * @param array $body Request body if applicable (an associative array will - * automatically be converted into a urlencoded body) - * @param array $extraHeaders Extra headers if applicable. These will override service-specific - * any defaults. - * - * @return string - */ - public function request($path, $method = 'GET', $body = null, array $extraHeaders = array()); - - /** - * Returns the url to redirect to for authorization purposes. - * - * @param array $additionalParameters - * - * @return UriInterface - */ - public function getAuthorizationUri(array $additionalParameters = array()); - - /** - * Returns the authorization API endpoint. - * - * @return UriInterface - */ - public function getAuthorizationEndpoint(); - - /** - * Returns the access token API endpoint. - * - * @return UriInterface - */ - public function getAccessTokenEndpoint(); -} |