Verzeichnisstruktur phpBB-3.3.15
- Veröffentlicht
- 28.08.2024
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
ServiceInterface.php
01 <?php
02
03 namespace OAuth\Common\Service;
04
05 use OAuth\Common\Http\Uri\UriInterface;
06
07 /**
08 * Defines methods common among all OAuth services.
09 */
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 }
48