[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 namespace OAuth\Common\Service; 4 5 use OAuth\Common\Http\Uri\UriInterface; 6 7 /** 8 * Defines methods common among all OAuth services. 9 */ 10 interface ServiceInterface 11 { 12 /** 13 * Sends an authenticated API request to the path provided. 14 * If the path provided is not an absolute URI, the base API Uri (service-specific) will be used. 15 * 16 * @param string|UriInterface $path 17 * @param string $method HTTP method 18 * @param array $body Request body if applicable (an associative array will 19 * automatically be converted into a urlencoded body) 20 * @param array $extraHeaders Extra headers if applicable. These will override service-specific 21 * any defaults. 22 * 23 * @return string 24 */ 25 public function request($path, $method = 'GET', $body = null, array $extraHeaders = []); 26 27 /** 28 * Returns the url to redirect to for authorization purposes. 29 * 30 * @return UriInterface 31 */ 32 public function getAuthorizationUri(array $additionalParameters = []); 33 34 /** 35 * Returns the authorization API endpoint. 36 * 37 * @return UriInterface 38 */ 39 public function getAuthorizationEndpoint(); 40 41 /** 42 * Returns the access token API endpoint. 43 * 44 * @return UriInterface 45 */ 46 public function getAccessTokenEndpoint(); 47 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |