Learn R Programming

meetupr (version 0.3.1)

find_groups: Find groups using text-based search

Description

Search for groups on Meetup using a text query. This function allows you to find groups that match your search criteria.

Usage

find_groups(
  query,
  topic_id = NULL,
  category_id = NULL,
  max_results = 200,
  handle_multiples = "list",
  extra_graphql = NULL,
  asis = FALSE,
  ...
)

Value

A tibble with group information

Arguments

query

Character string to search for groups

topic_id

Numeric ID of a topic to filter groups by

category_id

Numeric ID of a category to filter groups by

max_results

Maximum number of results to return. If set to NULL, will return all available results (may take a long time).

handle_multiples

Character. How to handle multiple matches. One of "list" or "first", or "error". If "list", return a list-column with all matches. If "first", return only the first match.

extra_graphql

A graphql object. Extra objects to return

asis

Return the raw API response as-is without processing

...

other named variables for graphql query. options are:

  • lat: Float

  • lon: Float

  • radius: Float

  • categoryId: ID

  • topicCategoryId: ID

Examples

Run this code
# \dontshow{
vcr::insert_example_cassette("find_groups", package = "meetupr")
meetupr:::mock_if_no_auth()
# }
groups <- find_groups("R-Ladies")
groups
# \dontshow{
vcr::eject_cassette()
# }

Run the code above in your browser using DataLab