From 0402dd226eebe3500ba8ab1190ad4e45c18e21a9 Mon Sep 17 00:00:00 2001 From: "j.faassen" Date: Tue, 7 Jun 2016 09:48:45 +0200 Subject: [PATCH] Add getPicture($key) --- src/V3/HubV3Client.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/V3/HubV3Client.php b/src/V3/HubV3Client.php index 45c7a7d..71a33a3 100644 --- a/src/V3/HubV3Client.php +++ b/src/V3/HubV3Client.php @@ -169,6 +169,15 @@ public function getResource($key) return $this->parseResourceXmlToResource($node); } + public function getPicture($key) + { + $resources = array(); + $uri = '/resources/' . $key . '/picture'; + $body = $this->sendRequest($uri, null); + + return $body; + } + public function getSource($key) { $resources = array();