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. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
ServiceInterface.php
01 <?php
02 namespace OAuth\OAuth1\Service;
03
04 use OAuth\Common\Consumer\Credentials;
05 use OAuth\Common\Storage\TokenStorageInterface;
06 use OAuth\Common\Token\TokenInterface;
07 use OAuth\Common\Http\Client\ClientInterface;
08 use OAuth\Common\Http\Uri\UriInterface;
09 use OAuth\Common\Http\Exception\TokenResponseException;
10 use OAuth\Common\Service\ServiceInterface as BaseServiceInterface;
11 use OAuth\OAuth1\Signature\SignatureInterface;
12
13 /**
14 * Defines the common methods across OAuth 1 services.
15 */
16 interface ServiceInterface extends BaseServiceInterface
17 {
18 /**
19 * @param \OAuth\Common\Consumer\Credentials $credentials
20 * @param \OAuth\Common\Http\Client\ClientInterface $httpClient
21 * @param \OAuth\Common\Storage\TokenStorageInterface $storage
22 * @param \OAuth\OAuth1\Signature\SignatureInterface $signature
23 * @param UriInterface|null $baseApiUri
24 * @abstract
25 */
26 public function __construct(Credentials $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, SignatureInterface $signature, UriInterface $baseApiUri = null);
27
28 /**
29 * Retrieves and stores/returns the OAuth1 request token.
30 *
31 * @abstract
32 * @return TokenInterface $token
33 * @throws TokenResponseException
34 */
35 public function requestRequestToken();
36
37 /**
38 * Retrieves and stores/returns the OAuth1 access token after a successful authorization.
39 *
40 * @abstract
41 * @param string $token The request token from the callback.
42 * @param string $verifier
43 * @param string $tokenSecret
44 * @return TokenInterface $token
45 * @throws TokenResponseException
46 */
47 public function requestAccessToken($token, $verifier, $tokenSecret);
48
49 /**
50 * @abstract
51 * @return UriInterface
52 */
53 public function getRequestTokenEndpoint();
54 }
55