Create an OAuth Client for LinkedIn API
li_client.Rd
The li_client
function initializes an
OAuth client to authenticate and
interact with the LinkedIn API. It uses
environment variables to retrieve
the LinkedIn application credentials
(client ID and client secret).
Value
An OAuth client object of class
httr2_request
that can be used to
authenticate and make requests to the
LinkedIn API.
Details
The function uses the httr2::oauth_client
function to create an OAuth client
for LinkedIn. The following environment
variables must be set:
LI_CLIENT_ID
The LinkedIn application client ID.
LI_CLIENT_SECRET
The LinkedIn application client secret.