3 namespace Wallabag\ImportBundle\Import
;
5 interface ImportInterface
12 public function getName();
15 * Description of the import.
19 public function getDescription();
22 * Return the oauth url to authenticate the client.
24 * @param string $redirectUri Redirect url in case of error
25 * @param string $callbackUri Url when the authentication is complete
29 public function oAuthRequest($redirectUri, $callbackUri);
32 * Usually called by the previous callback to authorize the client.
33 * Then it return a token that can be used for next requests.
37 public function oAuthAuthorize();
40 * Import content using the user token.
42 * @param string $accessToken User access token
44 public function import($accessToken);