Skip to content

Commit

Permalink
Added 'removeListener', 'removeAllListeners' & 'setMaxListeners'
Browse files Browse the repository at this point in the history
  • Loading branch information
jkutianski committed Oct 1, 2015
2 parents f42af06 + 6f06df8 commit 6b608f9
Show file tree
Hide file tree
Showing 8 changed files with 284 additions and 178 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You can access more detailed documentation about the API at [Meetup API Docs sit
[devdepstat-imag]: https://david-dm.org/jkutianski/meetup-api/dev-status.svg
[optdepstat-url]: https://david-dm.org/jkutianski/meetup-api#info=optionalDependencies
[optdepstat-imag]: https://david-dm.org/jkutianski/meetup-api/optional-status.svg?style=flat
[codeship-image]: http://img.shields.io/codeship/53271a40-6009-0132-2c13-2696ea524dd6/master.svg?style=flat
[codeship-image]: http://img.shields.io/codeship/53271a40-6009-0132-2c13-2696ea524dd6/1.1.X.svg?style=flat
[codeship-url]: https://codeship.com/projects/51586
[gitter-image]: https://img.shields.io/badge/gitter-join%20chat-yellowgreen.svg
[gitter-url]: https://gitter.im/jkutianski/meetup-api
Expand Down
18 changes: 18 additions & 0 deletions examples/firstEvent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
var assert = require('assert');

assert(process.env.MEETUP_KEY, 'MEETUP_KEY variable isn\'t set on enviroment (use \'set \"MEETUP_KEY=key\"\' on Windows)');

var meetup = require('../lib/meetup')({
key: process.env.MEETUP_KEY
});

meetup.getEvent({
"urlname": "NodeJS-Argentina",
"id": "79797122"
}, function(error, event) {
if (error) {
console.log(error);
} else {
console.log(event);
}
});
Binary file added examples/meetup.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions examples/uploadPhoto.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
var assert = require('assert');

assert(process.env.MEETUP_KEY, 'MEETUP_KEY variable isn\'t set on enviroment (use \'set \"MEETUP_KEY=key\"\' on Windows)');

var meetup = require('../lib/meetup')({
key: process.env.MEETUP_KEY
});

meetup.postGroupPhoto({
group_urlname: "NodeJS-Argentina",
photo: "meetup.jpg",
await: true
}, function(error, response) {
if (error) {
console.log(error);
} else {
console.log("Upload response:", response);

meetup.deletePhoto({
id: response.group_photo_id
}, function(error, response) {
if (error) {
console.log(error);
} else {
console.log("Delete response:", response);
}
});
}
});
64 changes: 52 additions & 12 deletions lib/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,11 @@
}
},
"getEvent": {
"resource": "https://api.meetup.com/2/event/:id",
"resource": "https://api.meetup.com/:urlname/events/:id",
"method": "get",
"test": {
"params": {
"urlname": "NodeJS-Argentina",
"id": "79797122"
},
"return": {
Expand Down Expand Up @@ -252,6 +253,23 @@
"resource": "https://api.meetup.com/:urlname/events/:id/attendance",
"method": "post"
},
"getEventAttendance": {
"resource": "https://api.meetup.com/:urlname/events/:id/attendance",
"method": "get",
"test": {
"params": {
"id": "79797122",
"urlname": "NodeJS-Argentina"
},
"return": {
"type": "array"
}
}
},
"postEventPayments": {
"resource": "https://api.meetup.com/:urlname/events/:id/payments",
"method": "post"
},
"getActivity": {
"resource": "https://api.meetup.com/activity",
"method": "get",
Expand Down Expand Up @@ -298,8 +316,35 @@
"postGroupPhoto": {
"resource": "https://api.meetup.com/2/group_photo",
"method": "post",
"disable": true,
"comments": "WARNING: postGroupPhoto() is not implemented yet!"
"multipart_photo": true
},
"findGroups": {
"resource": "https://api.meetup.com/find/groups",
"method": "get",
"test": {
"params": {
"page": 1
},
"return": {
"type": "array"
}
}
},
"getRecommendedGroups": {
"resource": "https://api.meetup.com/recommended/groups",
"method": "get",
"test": {
"params": {
"urlname": "NodeJS-Argentina"
},
"return": {
"type": "array"
}
}
},
"postRecommendedGroupsIgnore": {
"resource": " /recommended/groups/ignores/:urlname",
"method": "post"
},
"postTopics": {
"resource": "/:urlname/topics",
Expand Down Expand Up @@ -366,16 +411,13 @@
},
"postMemberPhoto": {
"resource": "https://api.meetup.com/2/member_photo",
"method": "post"
"method": "post",
"multipart_photo": true
},
"deleteMemberPhoto": {
"resource": "https://api.meetup.com/2/member_photo/:id",
"method": "delete"
},
"postMessage": {
"resource": "https://api.meetup.com/2/message",
"method": "post"
},
"getOEMBed": {
"resource": "https://api.meetup.com/oembed",
"method": "get",
Expand All @@ -392,8 +434,7 @@
"postPhoto": {
"resource": "https://api.meetup.com/2/photo",
"method": "post",
"disable": true,
"comments": "WARNING: postPhoto() is not implemented yet!"
"multipart_photo": true
},
"deletePhoto": {
"resource": "https://api.meetup.com/2/photo/:id",
Expand Down Expand Up @@ -591,7 +632,6 @@
"method": "get",
"test": {
"params": {

"fields": "stats"
},
"return": {
Expand Down Expand Up @@ -630,7 +670,7 @@
"getStreamOpenEvents": {
"resource": "https://stream.meetup.com/2/open_events",
"method": "get",
"chunked": "true",
"chunked": true,
"test": {
"params": {
"since_mtime": "1294435118533"
Expand Down
Loading

0 comments on commit 6b608f9

Please sign in to comment.