简体   繁体   中英

How to use github java API (org.eclipse.egit.github.*) to search for Users by Mail

I'm using GitHub Java API (org.eclipse.egit.github.*) and I have to search for a specific Users to assign Issues.

The problem is that I have to look for proper user by his/her mail and not with userid .

I cannot see any Search method in UserService class... any advice please?

At the moment this library doesn't offer this feature. The only way is to invoke the Search User ReST Endpoint

/api/v3/search/users?q=$MAIL

and pass the email as query parameter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM