forked from wallabag/wallabag
create ImportController to list importers
This commit is contained in:
committed by
Jeremy Benoist
parent
557e549db7
commit
d51b38ed30
@ -4,6 +4,8 @@ namespace Wallabag\ImportBundle\Import;
|
||||
|
||||
interface ImportInterface
|
||||
{
|
||||
public function getName();
|
||||
public function getDescription();
|
||||
public function oAuthRequest($redirectUri, $callbackUri);
|
||||
public function oAuthAuthorize();
|
||||
public function import($accessToken);
|
||||
|
||||
@ -23,6 +23,16 @@ class PocketImport implements ImportInterface
|
||||
$this->consumerKey = $consumerKey;
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return 'Pocket';
|
||||
}
|
||||
|
||||
public function getDescription()
|
||||
{
|
||||
return 'This importer will import all your <a href="https://getpocket.com">Pocket</a> data.';
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new Client.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user