From 255f952ca320b8d8af2e3bb995cc78d7abb4be08 Mon Sep 17 00:00:00 2001 From: Brian Showalter Date: Tue, 8 Sep 2015 14:18:22 -0400 Subject: [PATCH 1/2] Add method to retrieve an organization's boards --- lib/Trello/Api/Organization.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/Trello/Api/Organization.php b/lib/Trello/Api/Organization.php index 6fce6b1..f7ed12f 100644 --- a/lib/Trello/Api/Organization.php +++ b/lib/Trello/Api/Organization.php @@ -53,4 +53,18 @@ public function show($id, array $params = array()) { return $this->get($this->getPath().'/'.rawurlencode($id), $params); } + + /** + * Get an organization's boards + * @link https://trello.com/docs/api/organization/#get-1-organizations-idorg-or-name-boards + * + * @param string $id the organization's id + * @param array $params optional attributes + * + * @return array + */ + public function boards($id, array $params = array()) + { + return $this->get($this->getPath().'/'.rawurlencode($id).'/boards', $params); + } } From 949a1ac801abce5088ff658b1a5030e7d0eabf10 Mon Sep 17 00:00:00 2001 From: Brian Showalter Date: Tue, 8 Sep 2015 14:18:55 -0400 Subject: [PATCH 2/2] Add method to retrieve an organization's members --- lib/Trello/Api/Organization.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/Trello/Api/Organization.php b/lib/Trello/Api/Organization.php index f7ed12f..75d044f 100644 --- a/lib/Trello/Api/Organization.php +++ b/lib/Trello/Api/Organization.php @@ -67,4 +67,18 @@ public function boards($id, array $params = array()) { return $this->get($this->getPath().'/'.rawurlencode($id).'/boards', $params); } + + /** + * Get an organization's members + * @link https://trello.com/docs/api/organization/#get-1-organizations-idorg-or-name-members + * + * @param string $id the organization's id + * @param array $params optional attributes + * + * @return array + */ + public function members($id, array $params = array()) + { + return $this->get($this->getPath().'/'.rawurlencode($id).'/members', $params); + } }