Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List People Profiles doesn't take query string params. #1

Open
mcka opened this issue Apr 5, 2018 · 3 comments
Open

List People Profiles doesn't take query string params. #1

mcka opened this issue Apr 5, 2018 · 3 comments

Comments

@mcka
Copy link
Contributor

mcka commented Apr 5, 2018

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}

@matt-takumi
Copy link

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

@matt-takumi
Copy link

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

@dinistavares
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants