-
Notifications
You must be signed in to change notification settings - Fork 15
Meetupevents
This object handles interaction with the events grouping of Meetup API endpoints.
Please visit http://www.meetup.com/meetup_api/docs for more information about the events endpoints
The following methods are provided for developer use
Returns a listing of all open events fitting the given parameters.
The getOpenEvents() method takes as a parameter an associative array of values to pass to the Meetup API.
All possible parameters as well as response values are listed at http://www.meetup.com/meetup_api/docs/2/open_events
at least one of the following parameters is required
- city
- country
- lat
- lon
- state
- text
- topic
- zip
$m = new MeetupEvents();
$events = $m->getOpenEvents( array( 'zip' => '98115' ));
foreach($events as $e) {
echo $e['name'] . " at " . date(DATE_W3C, $e['time']/1000) . "<br>";
}
Returns a listing of all events fitting the given parameters.
The getEvents() method takes as a parameter an associative array of values to pass to the Meetup API.
All possible parameters as well as response values are listed at http://www.meetup.com/meetup_api/docs/2/events
at least one of the following parameters is required
- event_id
- group_id
- group_urlname
- member_id
- venue_id
$m = new MeetupEvents();
$events = $m->getEvents( array( 'member_id' => '14508967' ));
foreach($events as $e) {
echo $e['name'] . " at " . date(DATE_W3C, $e['time']/1000) . "<br>";
}
Return information on a specific event by id
The getEvent() method takes two parameters, and event id and annassociative array of values to pass to the Meetup API.
All possible values for $Parameters as well as response values are listed at http://www.meetup.com/meetup_api/docs/2/event/#get
$m = new MeetupEvents();
$event = $m->getEvent('qdjdfcyqcbqb') ;
echo $event['name'] . " at " . $event['venue']['name'];
Returns a listing of all events comments fitting the given parameters.
The getEventComments() method takes as a parameter an associative array of values to pass to the Meetup API.
All possible parameters as well as response values are listed at http://www.meetup.com/meetup_api/docs/2/event_comments/
at least one of the following parameters is required
- event_id
- group_id
- member_id
$m = new MeetupEvents();
$comments = $m->getEventComments( array( 'event_id' => 'qdjdfcyqcbqb' ) ) ;
foreach($comments as $c) {
echo $c['member_name'] . " - " . $c['comment'] . "<br>";
}
Returns a listing of all event ratings fitting the given parameters.
The getEventRatings() method takes as a parameter an associative array of values to pass to the Meetup API.
All possible parameters as well as response values are listed at http://www.meetup.com/meetup_api/docs/2/event_ratings/
at least one of the following parameters is required
- event_id
$m = new MeetupEvents();
$ratings = $m->getEventRatings( array( 'event_id' => '37429832' ) ) ;
foreach($ratings as $r) {
echo $r['rating'] . " - " . $r['review'] . "<br>";
}
To conform to the full Meetup API spec the following changes are required:
- Support POST with postEvent() to allow user to create events from the application
- Support POST with postEvent( $Id ) to allow user to update events from th application
- Support DELETE with deleteEvent( $Id ) to all user to delete events
- Support POST with postComment() to allow user to post event comments
- Support POST with postEventRating() to allow user to post event ratings