forked from collaborare-dot-net/MeetupAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.js
More file actions
21 lines (20 loc) · 1.41 KB
/
server.js
File metadata and controls
21 lines (20 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var list=["getCategories","getCheckins","postCheckin","getCities","getOpenEvents","getConcierge","getEvents","postEvent","getEventComments","postEventComment","postEventCommentFlag","getEventCommentLikes","getEventRatings","postEventRating","getEventAttendance","takeEventAttendance","getEverywhereComments","postEverywhereComment","getEverywhereCommunities","postEverywhereCommunity","getEverywhereFollows","getEverywhereFollowers","postEverywhereFollow","postEverywhereContainer","getEverywhereContainers","postEverywhereSeed","postEverywhereEvent","getEverywhereEvents","postEverywhereRsvp","getEverywhereRsvps","getEverywhereSeeds","getActivity","getGroups","getComments","getMembers","postMemberPhoto","postMessage","getOEMBed","getOEMBed","getPhotoComments","postPhotoComment","getPhotoAlbums","getPhoto","getPhotos","postPhotoAlbum","postPhoto","getProfiles","postProfiles","postRSVP","getRSVPs","getOpenVenues","getVenues","getTopics"],
MeetupMe = Meteor.require("meetup-api"),
meetup = new MeetupMe("376915111a5224393a202e7e1d474031");
AsyncMeetup = Async.wrap(meetup, list);
Meteor.methods({
MeetupAPI : function(endpoint,param) {
switch(endpoint){
case "getOpenEvents":
return AsyncMeetup.getOpenEvents(param);
break
case "getMembers":
return AsyncMeetup.getMembers(param);
break
case "getGroups":
return AsyncMeetup.getGroups(param);
break
default:
}
}
});