From 6b2db3faa47cb68c6e1a07a5125bb4c2c91fe055 Mon Sep 17 00:00:00 2001 From: Asif Iqbal Date: Thu, 23 Feb 2017 18:23:21 +0500 Subject: [PATCH] Replace URL Card Members Method Name --- lib/Trello/Api/Card/Members.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Trello/Api/Card/Members.php b/lib/Trello/Api/Card/Members.php index 7a0061d..37e5665 100644 --- a/lib/Trello/Api/Card/Members.php +++ b/lib/Trello/Api/Card/Members.php @@ -46,7 +46,9 @@ public function set($id, array $members) $members = implode(',', $members); - return $this->put($this->getPath($id), array('value' => $members)); + $path = str_replace("/members", "/idMembers", $this->getPath($id)); + + return $this->put($path, array('value' => $members)); } /**