githug (version 0.0.0.9000)

gh_username: Get authenticated username

Description

Get the authenticated username associated with a GitHub personal access token. Wraps the authenticated user endpoint of the GitHub API.

Usage

gh_username(pat = gh_pat())

Arguments

pat
A GitHub personal access token (PAT).

Value

character, a GitHub username

See Also

gh_pat()

Examples

Run this code
gh_username()

Run the code above in your browser using DataCamp Workspace