Eric Johnson
Eric Johnson

Reputation: 1165

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

Upvotes: 0

Views: 81

Answers (1)

Ioannis Lalopoulos
Ioannis Lalopoulos

Reputation: 1511

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

Upvotes: 2

Related Questions