SymphonyPlatformSolutions / symphony-api-client-node

Symphony API Client for NodeJS
MIT License
6 stars 20 forks source link

getUserV3 creates url with 'emailList' instead of 'email' #21

Closed karlmoll closed 5 years ago

karlmoll commented 5 years ago

getUserV3 produces an incorrect url per API docs when an email is passed:

https://github.com/SymphonyPlatformSolutions/symphony-api-client-node/blob/c1bd1af2dcd47b8dee11c3493f214a854cf007ec/lib/UsersClient/index.js#L86

url param 'emailList' should be 'email'

miguel-symphony commented 5 years ago

idList should also be uid https://rest-api.symphony.com/reference#users-lookup-v3

mistryvinay commented 5 years ago

Hi @karlmoll / @miguel-symphony thanks for raising this issue. I have updated the code for searching for users.

To lookup an individual user using userID please use UsersClient.getUserFromIdV3.

The following API calls are to lookup groups of users, UsersClient.getUsersFromEmailList UsersClient.getUsersFromIdList

Which then use UsersClient.getUsersV3.