You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/users/Client.swift
+90Lines changed: 90 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4362,6 +4362,96 @@ public struct Client: APIProtocol {
4362
4362
}
4363
4363
)
4364
4364
}
4365
+
/// Get a user using their ID
4366
+
///
4367
+
/// Provides publicly available information about someone with a GitHub account. This method takes their durable user `ID` instead of their `login`, which can change over time.
4368
+
///
4369
+
/// The `email` key in the following response is the publicly visible email address from your GitHub [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub. For more information, see [Authentication](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#authentication).
4370
+
///
4371
+
/// The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/rest/users/emails)".
4372
+
///
4373
+
/// - Remark: HTTP `GET /user/{account_id}`.
4374
+
/// - Remark: Generated from `#/paths//user/{account_id}/get(users/get-by-id)`.
0 commit comments