python-crisp-api icon indicating copy to clipboard operation
python-crisp-api copied to clipboard

List People Profiles doesn't take query string params.

Open mcka opened this issue 6 years ago • 3 comments

params can be added to this method client.website.list_people_profiles(website_id, page_number, params) to have all options in the API /website/{website_id}/people/profiles/{page_number}{?sort_field}{&sort_order}{&search_operator}{&search_filter}

mcka avatar Apr 05 '18 13:04 mcka

It would also be beneficial to have the search_filter option documented.

matt-takumi avatar Mar 05 '24 16:03 matt-takumi

Alternatively - I noticed that search_people_profiles exists - having search_filter (and other parameters) documented there would be immensely useful.

matt-takumi avatar Mar 05 '24 17:03 matt-takumi

The search_people_profiles works pretty well. The best thing to do in this case is to create the filter in Crisp directly and then inspect the network tab of your browser to view how the query parameters are formed.

For example, if you would like to search for a person based on their email, you can do it like so:

client.website.search_people_profiles(website_id, '1', '[{"criterion":"email","query":["[email protected]"],"model":"people","operator":"eq"}]')

Currently I don't think this library includes the option to add the other search parameters such as sort_order, search_operator etc.

dinistavares avatar Mar 08 '24 09:03 dinistavares