module GitHub.Endpoints.Users.Emails (
currentUserEmailsR,
currentUserPublicEmailsR,
module GitHub.Data,
) where
import GitHub.Data
import GitHub.Internal.Prelude
import Prelude ()
currentUserEmailsR :: FetchCount -> Request 'RA (Vector Email)
currentUserEmailsR :: FetchCount -> Request 'RA (Vector Email)
currentUserEmailsR =
Paths -> QueryString -> FetchCount -> Request 'RA (Vector Email)
forall a (mt :: RW).
FromJSON a =>
Paths -> QueryString -> FetchCount -> Request mt (Vector a)
pagedQuery [Text
"user", Text
"emails"] []
currentUserPublicEmailsR :: FetchCount -> Request 'RA (Vector Email)
currentUserPublicEmailsR :: FetchCount -> Request 'RA (Vector Email)
currentUserPublicEmailsR =
Paths -> QueryString -> FetchCount -> Request 'RA (Vector Email)
forall a (mt :: RW).
FromJSON a =>
Paths -> QueryString -> FetchCount -> Request mt (Vector a)
pagedQuery [Text
"user", Text
"public_emails"] []