Search code examples
apiresthttpurlmeetup

Formulating REST API call


Here is my query string

https://api.meetup.com/2/open_events?country=us&state=ca&city=sanfrancisco&category=34&page=10&group_photo&sign=true&&sign=true

I'm having no success reaching the group_photo resource.

In the docs they say:

group_photo

Returned when fields request parameter contains "group_photo". Represents photo for the group hosting the event

I tried changing group_photo to group_photo=true but that didn't help.

Here's the console if you wanna test it


Solution

  • From the Meetup API documentation:

    fields: Request that additional fields (separated by commas) be included in the output

    and

    group_photo: Returned when fields request parameter contains "group_photo". Represents photo for the group hosting the event

    so you must add fields=group_photo and the call you gave above would be be something like:

    https://api.meetup.com/2/open_events?country=us&state=ca&city=sanfrancisco&category=34&page=10&fields=group_photo&sign=true&sign=true