Skip to contents

This function prepares and configures an HTTP request for interacting with the Meetup API. It allows the user to authenticate via OAuth, specify the use of caching, and set custom client configuration.

Usage

meetup_req(rate_limit = 500/60, cache = TRUE, ...)

Arguments

rate_limit

A numeric value specifying the maximum number of requests

cache

A logical value indicating whether to cache the OAuth token on disk. Defaults to TRUE.

...

Additional arguments passed to meetup_client() for setting up the OAuth client.

Value

A httr2 request object pre-configured to interact with the Meetup API.

Details

This function constructs an HTTP POST request directed to the Meetup API and applies appropriate OAuth headers for authentication. The function is prepared to support caching and provides flexibility for client customization with the ... parameter. The implementation is currently commented out and would require activation for functionality.

Examples

if (FALSE) { # \dontrun{
# Example 1: Basic request with caching enabled
req <- meetup_req(cache = TRUE)

# Example 2: Request with custom client ID and secret
req <- meetup_req(
  cache = FALSE,
  client_id = "your_client_id",
  client_secret = "your_client_secret"
)
} # }