It looks like you have to add to fields
the field group_category
. Then in your response you can filter out group
categories with the id
of 34
. Here is an example that I got back:
"10": {
"created": 1476031548000,
"duration": 25200000,
"id": "pqnnbmywhblc",
"name": "The Sunday Hack Shack WorkShop",
"status": "upcoming",
"time": 1495987200000,
"updated": 1476031548000,
"utc_offset": -14400000,
"waitlist_count": 0,
"yes_rsvp_count": 4,
"group": {
"created": 1386453720000,
"name": "Pinellas Hack Shack",
"id": 11376752,
"join_mode": "open",
"lat": 27.84000015258789,
"lon": -82.72000122070312,
"urlname": "Pinellas-Hack-Shack",
"who": "Twidgits",
"category": {
"id": 34,
"name": "Tech",
"shortname": "Tech",
"sort_name": "Tech"
}
},
"link": "https://www.meetup.com/Pinellas-Hack-Shack/events/240185831/",
"description": "<p>This is the Sunday General Workshop. Come in, work on anything you like!</p> ",
"visibility": "public"
},
As you can see under group
then category
then id
there is 34
. 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:
const arrayOfOnly34 = Object.keys(result).reduce((acc, curr) => {
const value = result[curr]
if (value.group.category.id === 34) {
acc.push(value)
}
return acc
}, [])