Skip to content

Find Admin by Id #159

@MrJaeger

Description

@MrJaeger

In a previous version of this client (2.1.1) the Admin class had the find method on it (see https://github.com/jkeyes/python-intercom/blob/467bb83b1fbc3e2f88ed21e14877b412e25e6c17/intercom/admin.py) so you could find a particular Intercom admin by their id. Would it be possible to add this functionality back in? I tested the functionality by doing:

from intercom.client import Client
from intercom.service.admin import Admin
from intercom.api_operations.find import Find

MyIntercomAdmin(Admin, Find):
    pass

client = Client(personal_access_token='MY TOKEN')
admins = MyIntercomAdmin(client)
admin = admins.find(id='id of admin I am searching for')

And the correct admin is returned. We really need this functionality for our purposes, will locally patch the issue for now but would love official support (/would be happy to write the PR to make find admin work)!

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