Jump to content

Use a REST API: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 408:
 
 
/*
meetup().postEvent({ // Needs permission to post, which is paid.
* Getting group ID and group urlname
group_id: id,
*
group_urlname: urlname,
* The URL name is simply the part after meetup.com/ on a meetup group.
name: name
* Example, ID of meetup.com/foodie-programmers is 'foodie-programmers'.
*
* Running the code below with the group name will give the group ID, an integer.
 
meetup().getEvent({
'group_urlname': 'foodie-programmers'
}, function(group) {
console.log(group.id);
}, '/2/groups');
 
* Using the above group_id and the group_urlname manually,
* you can post events to a group with the below code
*/
 
 
meetup().postEvent({
group_id: 42, // Group ID goes here
group_urlname: urlname'foodie-programmers',
name: 'Tomato Python Fest'
}, function(result) {
console.log(result);
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.