diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2015-12-24 15:22:56 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-01-02 23:27:41 +0100 |
commit | 0aa344dc247c77376fcbf2112191f9f8b3dfc846 (patch) | |
tree | 4b9b958e6652ae389af93e9ac2b6c05ec366fcd6 /src/Wallabag/ImportBundle/Import/ImportInterface.php | |
parent | 5a4bbcc9a76fcdf54a6af25fcf7b26c9053a0ba3 (diff) | |
download | wallabag-0aa344dc247c77376fcbf2112191f9f8b3dfc846.tar.gz wallabag-0aa344dc247c77376fcbf2112191f9f8b3dfc846.tar.zst wallabag-0aa344dc247c77376fcbf2112191f9f8b3dfc846.zip |
Update url & service name
Prefix ur with service namel: [service]_[route name]
Add comment in Interface
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/ImportInterface.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/ImportInterface.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Import/ImportInterface.php b/src/Wallabag/ImportBundle/Import/ImportInterface.php index f07a120c..0f9b3256 100644 --- a/src/Wallabag/ImportBundle/Import/ImportInterface.php +++ b/src/Wallabag/ImportBundle/Import/ImportInterface.php | |||
@@ -4,9 +4,42 @@ namespace Wallabag\ImportBundle\Import; | |||
4 | 4 | ||
5 | interface ImportInterface | 5 | interface ImportInterface |
6 | { | 6 | { |
7 | /** | ||
8 | * Name of the import. | ||
9 | * | ||
10 | * @return string | ||
11 | */ | ||
7 | public function getName(); | 12 | public function getName(); |
13 | |||
14 | /** | ||
15 | * Description of the import. | ||
16 | * | ||
17 | * @return string | ||
18 | */ | ||
8 | public function getDescription(); | 19 | public function getDescription(); |
20 | |||
21 | /** | ||
22 | * Return the oauth url to authenticate the client. | ||
23 | * | ||
24 | * @param string $redirectUri Redirect url in case of error | ||
25 | * @param string $callbackUri Url when the authentication is complete | ||
26 | * | ||
27 | * @return string | ||
28 | */ | ||
9 | public function oAuthRequest($redirectUri, $callbackUri); | 29 | public function oAuthRequest($redirectUri, $callbackUri); |
30 | |||
31 | /** | ||
32 | * Usually called by the previous callback to authorize the client. | ||
33 | * Then it return a token that can be used for next requests. | ||
34 | * | ||
35 | * @return string | ||
36 | */ | ||
10 | public function oAuthAuthorize(); | 37 | public function oAuthAuthorize(); |
38 | |||
39 | /** | ||
40 | * Import content using the user token. | ||
41 | * | ||
42 | * @param string $accessToken User access token | ||
43 | */ | ||
11 | public function import($accessToken); | 44 | public function import($accessToken); |
12 | } | 45 | } |