From 97f34b87fe70392ec867ae5f14921c7295cb9b43 Mon Sep 17 00:00:00 2001 From: Gabriel Tanase Date: Thu, 4 Oct 2018 14:17:47 +0100 Subject: [PATCH] Return 'user.User' when listing all of the users of a company --- intercom/extended_api_operations/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intercom/extended_api_operations/users.py b/intercom/extended_api_operations/users.py index b4406b42..c43cd00b 100644 --- a/intercom/extended_api_operations/users.py +++ b/intercom/extended_api_operations/users.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Operation to return all users for a particular Company.""" -from intercom import utils +from intercom import utils, user from intercom.collection_proxy import CollectionProxy @@ -14,4 +14,4 @@ def users(self, id): self.collection_class) finder_url = "/%s/%s/users" % (collection, id) return CollectionProxy( - self.client, self.collection_class, "users", finder_url) + self.client, user.User, "users", finder_url)