1 | <?php |
||
9 | class Authentication extends Api |
||
10 | { |
||
11 | /** |
||
12 | * Obtain the access token and the username. |
||
13 | * |
||
14 | * @param string $requestToken |
||
15 | * |
||
16 | * @return mixed |
||
17 | */ |
||
18 | public function obtainAccess(string $requestToken) |
||
30 | |||
31 | /** |
||
32 | * Obtain the request token. |
||
33 | * |
||
34 | * @param string $redirectUrl |
||
35 | * @param string|null $state |
||
36 | * |
||
37 | * @return mixed |
||
38 | */ |
||
39 | public function obtainRequestToken(string $redirectUrl, string $state = null) |
||
51 | |||
52 | /** |
||
53 | * Create the authorization url. |
||
54 | * |
||
55 | * @param string $requestToken |
||
56 | * @param string $redirectUrl |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | public function authorizationUrl(string $requestToken, string $redirectUrl): string |
||
64 | } |
||
65 |