This function fetches the LinkedIn Uniform
Resource Name (URN) for the currently
authenticated user using the LinkedIn API.
Authentication is performed using a
bearer token stored in the LI_TOKEN
environment variable.
Value
A string representing the user's
LinkedIn URN in the format "urn:li:person:{id}"
.
Details
The function sends an API request to the
LinkedIn userinfo
endpoint with the
appropriate authorization token and extracts
the user's unique identifier (sub).
This identifier is then formatted as a
LinkedIn URN.
Examples
if (FALSE) { # \dontrun{
li_urn_me()
} # }