This function initializes and returns an OAuth client for authenticating with the Meetup API. It requires the Meetup client ID and secret, which can be passed as arguments or retrieved from environment variables.
Usage
meetup_client(
client_id = NULL,
client_secret = NULL,
client_name = Sys.getenv("MEETUP_CLIENT_NAME", "meetupr"),
...
)Arguments
- client_id
A string representing the Meetup client ID. By default, it is retrieved from the
meetup:client_idenvironment variable.- client_secret
A string representing the Meetup client secret. By default, it is retrieved from the
meetup:client_secretenvironment variable.- client_name
A string representing the name of the client. By default, it is set to
"meetupr"and retrieved from theMEETUP_CLIENT_NAMEenvironment variable.- ...
Additional arguments passed to the
httr2::oauth_clientfunction.
Value
An OAuth client object created with the httr2::oauth_client
function. This client can be used to handle authentication with the
Meetup API.
