Little help? Unable to GET membership fee from API.

16 views
Skip to first unread message

Whitney Kramer

unread,
Mar 22, 2017, 8:46:33 AM3/22/17
to Meetup API
I'm using python to retrieve membership fees for a few meetups.

The groups endpoint documentation doesn't indicate this data is private, yet it's returning blanks for groups I don't organize.

Here's the documentation.

This is an example of a group with a membership fee.

Group_ID = 3991402

When I run this group in the console, it doesn't return the membership fee.  Similarly, when I pull the group data with python, I get "blank" for all the membership dues.


print "," .join(map(unicode, [
                            group['id'],
                            group['name'].replace('\r', '').replace('\n', '').replace(","," "),
                            group.get('membership_dues',{}).get('currency',""),
                            group.get('membership_dues',{}).get('fee',"")
]))

Is this a bug with the API? What else might be going on?

Whitney Kramer

unread,
Mar 23, 2017, 9:03:46 AM3/23/17
to Meetup API
Found it.  Need to specify optional fields.

Doug Tangren

unread,
Mar 23, 2017, 1:45:19 PM3/23/17
to meetu...@googlegroups.com
On Wed, Mar 22, 2017 at 2:49 PM, Whitney Kramer <kra...@gmail.com> wrote:
Found it.  Need to specify optional fields.


Whitney, good to hear

You can also use the newer v3 api for fetching group info https://secure.meetup.com/meetup_api/console/?path=/:urlname&fields=membership_dues
 

--
--
You received this message because you are subscribed to the Google
Groups "Meetup API" group.
To unsubscribe from this group, send email to
meetup-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/meetup-api?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "Meetup API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetup-api+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages