module GitHub.Endpoints.Users.Emails (
currentUserEmails',
currentUserEmailsR,
currentUserPublicEmails',
currentUserPublicEmailsR,
module GitHub.Data,
) where
import GitHub.Data
import GitHub.Internal.Prelude
import GitHub.Request
import Prelude ()
currentUserEmails' :: Auth -> IO (Either Error (Vector Email))
currentUserEmails' auth =
executeRequest auth $ currentUserEmailsR FetchAll
currentUserEmailsR :: FetchCount -> Request 'RA (Vector Email)
currentUserEmailsR =
pagedQuery ["user", "emails"] []
currentUserPublicEmails' :: Auth -> IO (Either Error (Vector Email))
currentUserPublicEmails' auth =
executeRequest auth $ currentUserPublicEmailsR FetchAll
currentUserPublicEmailsR :: FetchCount -> Request 'RA (Vector Email)
currentUserPublicEmailsR =
pagedQuery ["user", "public_emails"] []