Skip to content

Commit 672f418

Browse files
committed
Adding find_all_for_user to Tag.
1 parent aa876e0 commit 672f418

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

intercom/tag.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,14 @@ def tag_companies(cls, name, companies):
4444
@classmethod
4545
def untag_companies(cls, name, companies):
4646
return cls._tag_collection(name, 'companies', companies, untag=True)
47+
48+
@classmethod
49+
def find_all_for_user(cls, id=None, email=None, user_id=None):
50+
params = {}
51+
if id:
52+
params['id'] = id
53+
if email:
54+
params['email'] = email
55+
if user_id:
56+
params['user_id'] = user_id
57+
return Tag.find_all(**params)

0 commit comments

Comments
 (0)