From 3b57397795dd6d66394977da50395b6f6a5c8e74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Thu, 7 Jul 2016 00:13:31 +0200 Subject: [PATCH] Add title and description properties to PhotoAsset --- pyicloud/services/photos.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyicloud/services/photos.py b/pyicloud/services/photos.py index 5e02391..65e11aa 100644 --- a/pyicloud/services/photos.py +++ b/pyicloud/services/photos.py @@ -259,6 +259,14 @@ class PhotoAsset(object): def dimensions(self): return self.data.get('dimensions') + @property + def title(self): + return self.data.get('title') + + @property + def description(self): + return self.data.get('description') + @property def versions(self): versions = {}