Skip to content

Can't iterate through my tags  #244

Open
@Rob192

Description

@Rob192

Hello !
Thank you for the library :)
I cannot iterate through the tags I have in my Workspace. When I do
` # find all tags using the Intercom API
alltags = intercom.tags.all()

# collect all tag names
tag_names = [tag.name for tag in alltags]`

I get this error :
Traceback (most recent call last):
File "C:\Users\Utilisateur\AppData\Local\Programs\Python\Python310\lib\code.py", line 90, in runcode
exec(code, self.locals)
File "", line 5, in
File "", line 5, in
File "C:\Users\Utilisateur\OneDrive\Documents\code_perifit\ai_intercom_tag\venv\lib\site-packages\intercom\collection_proxy.py", line 46, in next
self.get_first_page()
File "C:\Users\Utilisateur\OneDrive\Documents\code_perifit\ai_intercom_tag\venv\lib\site-packages\intercom\collection_proxy.py", line 67, in get_first_page
return self.get_page(self.finder_url, self.finder_params)
File "C:\Users\Utilisateur\OneDrive\Documents\code_perifit\ai_intercom_tag\venv\lib\site-packages\intercom\collection_proxy.py", line 85, in get_page
collection = response[self.collection]
KeyError: 'tags'

Using directly the Intercom API works though

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions