]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/ImportBundle/Import/ImportInterface.php
Update url & service name
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Import / ImportInterface.php
CommitLineData
ff7b031d
NL
1<?php
2
3namespace Wallabag\ImportBundle\Import;
4
5interface ImportInterface
6{
0aa344dc
JB
7 /**
8 * Name of the import.
9 *
10 * @return string
11 */
d51b38ed 12 public function getName();
0aa344dc
JB
13
14 /**
15 * Description of the import.
16 *
17 * @return string
18 */
d51b38ed 19 public function getDescription();
0aa344dc
JB
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 */
ff7b031d 29 public function oAuthRequest($redirectUri, $callbackUri);
0aa344dc
JB
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 */
ff7b031d 37 public function oAuthAuthorize();
0aa344dc
JB
38
39 /**
40 * Import content using the user token.
41 *
42 * @param string $accessToken User access token
43 */
ff7b031d
NL
44 public function import($accessToken);
45}