From 0d5c4e438e001ef21dfae69df4ae186b697d2efc Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 25 Mar 2016 15:31:17 +0100 Subject: add basic basic auth support --- controller/feedcontroller.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'controller') 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 { -- cgit v1.2.3