diff options
Diffstat (limited to 'controller/feedcontroller.php')
-rw-r--r-- | controller/feedcontroller.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/controller/feedcontroller.php b/controller/feedcontroller.php index 37e415661..2b95794a3 100644 --- a/controller/feedcontroller.php +++ b/controller/feedcontroller.php @@ -124,16 +124,20 @@ class FeedController extends Controller { * @param string $url * @param int $parentFolderId * @param string $title + * @param string $user + * @param string $password * @return array|\OCP\AppFramework\Http\JSONResponse */ - public function create($url, $parentFolderId, $title){ + public function create($url, $parentFolderId, $title=null, + $user=null, $password=null){ try { // we need to purge deleted feeds if a feed is created to // prevent already exists exceptions $this->feedService->purgeDeleted($this->userId, false); $feed = $this->feedService->create($url, $parentFolderId, - $this->userId, $title); + $this->userId, $title, + $user, $password); $params = ['feeds' => [$feed]]; try { |