Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 06f2321e10
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (42 sloc) 1.532 kB
<?php
/**
* Client for the 'groups' grouping of the Meetup API
*
* @link http://www.meetup.com/meetup_api/docs
*/
class MeetupGroups extends MeetupApiRequest {
/**
* Returns all groups matching the given criteria
*
* Required paramters:
* 'campaign_id' | 'domain' | 'group_id' | 'group_urlname' | 'member_id' | 'organizer_id' | 'sponsor_id'
*
* @link http://www.meetup.com/meetup_api/docs/2/groups
* @param Array $Parameters
* @return Array
*/
public function getGroups( $Parameters ) {
$required_params = array( 'campaign_id', 'domain', 'group_id', 'group_urlname', 'member_id', 'organizer_id', 'sponsor_id');
$url = $this->buildUrl( MEETUP_ENDPOINT_GROUPS, $Parameters, $required_params );
echo $url;
$response = $this->get( $url )->getResponse();
return $response['results'];
}
/**
* Returns all comments associated with the given group
*
* Required paramters:
* 'group_id' | 'group_urlname' | 'topic,groupnum'
*
* @link http://www.meetup.com/meetup_api/docs/comments
* @param Array $Parameters
* @return Array
*/
public function getComments( $Parameters ) {
$required_params = array( 'group_id', 'group_urlname', 'topic,groupnum');
$url = $this->buildUrl( MEETUP_ENDPOINT_GROUP_COMMENTS, $Parameters, $required_params );
echo $url;
$response = $this->get( $url )->getResponse();
return $response['results'];
}
} // end class
Jump to Line
Something went wrong with that request. Please try again.