I'm creating a web app that makes a front-end javascript request to the Meetup API to get a list of events, the query will be generated dynamically with the users lat/lng, specified distance, and a category id of 34 (tech).
Having real problems figuring this out been at it for hours the API documentation is poor - I can get a list of events within a specified distance (2 miles in this example) from lat/lng:
but I can't figure out how to list only those events with category 34.
Can this be done on on the client side - is it possible?
Any help would be much appreciated, thanks.
It looks like you have to add to
fields
the fieldgroup_category
. Then in your response you can filter outgroup
categories with theid
of34
. Here is an example that I got back:As you can see under
group
thencategory
thenid
there is34
. From what I read I don't think you can just get the categories you want. But you can map over this response and filter out the categories you are looking for.And yes, you will have to filter the response on the client side. Something like this should work: