Verzeichnisstruktur phpBB-3.1.0


Veröffentlicht
27.10.2014

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.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

      (Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

ServiceInterface.php

Zuletzt modifiziert: 09.10.2024, 12:58 - Dateigröße: 1.42 KiB


 01  <?php
 02  namespace OAuth\Common\Service;
 03   
 04  use OAuth\Common\Http\Uri\UriInterface;
 05   
 06  /**
 07   * Defines methods common among all OAuth services.
 08   */
 09  interface ServiceInterface
 10  {
 11      /**
 12       * Sends an authenticated API request to the path provided.
 13       * If the path provided is not an absolute URI, the base API Uri (service-specific) will be used.
 14       *
 15       * @abstract
 16       * @param $path string|UriInterface
 17       * @param string $method HTTP method
 18       * @param array $body Request body if applicable (an associative array will automatically be converted into a urlencoded body)
 19       * @param array $extraHeaders Extra headers if applicable. These will override service-specific any defaults.
 20       * @return string
 21       */
 22      public function request($path, $method = 'GET', $body = null, array $extraHeaders = array());
 23   
 24      /**
 25       * Returns the url to redirect to for authorization purposes.
 26       *
 27       * @abstract
 28       * @param array $additionalParameters
 29       * @return UriInterface
 30       */
 31      public function getAuthorizationUri( array $additionalParameters = array() );
 32   
 33      /**
 34       * Returns the authorization API endpoint.
 35       *
 36       * @abstract
 37       * @return UriInterface
 38       */
 39      public function getAuthorizationEndpoint();
 40   
 41      /**
 42       * Returns the access token API endpoint.
 43       *
 44       * @abstract
 45       * @return UriInterface
 46       */
 47      public function getAccessTokenEndpoint();
 48  }
 49