Sim Well-known member Mar 15, 2019 #1 There doesn't seem to be an API endpoint for retrieving a user by email address? Is there a more efficient approach to this than retrieving all users and filtering the results to find a user using their email address?
There doesn't seem to be an API endpoint for retrieving a user by email address? Is there a more efficient approach to this than retrieving all users and filtering the results to find a user using their email address?
DragonByte Tech Well-known member Mar 15, 2019 #2 Probably the most efficient would be to create a small addon for that with a new endpoint
Sim Well-known member Mar 15, 2019 #3 DragonByte Tech said: Probably the most efficient would be to create a small addon for that with a new endpoint Click to expand... I already have a small addon which provides my own endpoint to retrieve this information to integrate with my HelpDesk system The whole point of a REST API is that I shouldn't have to write a small addon to provide a new endpoint
DragonByte Tech said: Probably the most efficient would be to create a small addon for that with a new endpoint Click to expand... I already have a small addon which provides my own endpoint to retrieve this information to integrate with my HelpDesk system The whole point of a REST API is that I shouldn't have to write a small addon to provide a new endpoint
Sim Well-known member Mar 15, 2019 #4 If we could filter the GET /users API endpoint (https://xenforo.com/community/pages/api-endpoints/#route_get_users_) as per my suggestion https://xenforo.com/community/threads/api-filtering-and-sorting-parameters.162480/ - then it would be trivial and wouldn't actually require an additional endpoint to be created - we could also retrieve users based on other criteria too, not just email.
If we could filter the GET /users API endpoint (https://xenforo.com/community/pages/api-endpoints/#route_get_users_) as per my suggestion https://xenforo.com/community/threads/api-filtering-and-sorting-parameters.162480/ - then it would be trivial and wouldn't actually require an additional endpoint to be created - we could also retrieve users based on other criteria too, not just email.