47degrees / github4s

A GitHub API wrapper written in Scala
http://47degrees.github.io/github4s
Apache License 2.0
229 stars 75 forks source link

Support retrieving auth user's email #903

Closed john-joe-givery closed 9 months ago

john-joe-givery commented 9 months ago

For my oauth flow, I need the ability to retrieve a user's email address. The best api for this purpose seems to be https://docs.github.com/en/rest/users/emails?apiVersion=2022-11-28#list-email-addresses-for-the-authenticated-user

I've already created a PR to add the api support https://github.com/47degrees/github4s/pull/902. Please assist in getting this released in the library.