labpack/events/meetup.py
def leave_event(self, group_url, event_id):

        ''' a method to rescind an rsvp to a meetup event

        :param group_url: string with meetup urlname for group
        :param event_id: integer with meetup id for event
        :return: dictionary with attendee details inside [json] key

        attendee_details = self._reconstruct_attendee({})
        '''

    # https://www.meetup.com/meetup_api/docs/:urlname/events/:event_id/rsvps/

        title = '%s.leave_event' % self.__class__.__name__

    # validate permissions
        if not 'rsvp' in self.service_scope:
            raise ValueError('%s requires group_join as part of oauth2 service_scope permissions.' % title)

    # validate inputs
        input_fields = {
            'group_url': group_url,
            'event_id': event_id
        }
        for key, value in input_fields.items():
            if value:
                object_title = '%s(%s=%s)' % (title, key, str(value))
                self.fields.validate(value, '.%s' % key, object_title)

    # construct request fields
        url = '%s/%s/events/%s/rsvps' % (self.endpoint, group_url, event_id)
        params = {
            'response': 'no'
        }

    # send request
        response_details = self._post_request(url, params=params)

    # construct method output
        if response_details['json']:
            response_details['json'] = self._reconstruct_attendee(response_details['json'])

        return response_details
 a method to rescind an rsvp to a meetup event

        :param group_url: string with meetup urlname for group
        :param event_id: integer with meetup id for event
        :return: dictionary with attendee details inside [json] key

        attendee_details = self._reconstruct_attendee({})
        
a method to rescind an rsvp to a meetup event
a method to rescind an rsvp to a meetup event
def leave_event(self, group_url, event_id):
        title = '%s.leave_event' % self.__class__.__name__
        if not 'rsvp' in self.service_scope:
            raise ValueError('%s requires group_join as part of oauth2 service_scope permissions.' % title)
        input_fields = {
            'group_url': group_url,
            'event_id': event_id
        }
        for key, value in input_fields.items():
            if value:
                object_title = '%s(%s=%s)' % (title, key, str(value))
                self.fields.validate(value, '.%s' % key, object_title)
        url = '%s/%s/events/%s/rsvps' % (self.endpoint, group_url, event_id)
        params = {
            'response': 'no'
        }
        response_details = self._post_request(url, params=params)
        if response_details['json']:
            response_details['json'] = self._reconstruct_attendee(response_details['json'])
        return response_details
def leave_event ( self , group_url , event_id ) : title = '%s.leave_event' % self . __class__ . __name__ if not 'rsvp' in self . service_scope : raise ValueError ( '%s requires group_join as part of oauth2 service_scope permissions.' % title ) input_fields = { 'group_url' : group_url , 'event_id' : event_id } for key , value in input_fields . items ( ) : if value : object_title = '%s(%s=%s)' % ( title , key , str ( value ) ) self . fields . validate ( value , '.%s' % key , object_title ) url = '%s/%s/events/%s/rsvps' % ( self . endpoint , group_url , event_id ) params = { 'response' : 'no' } response_details = self . _post_request ( url , params = params ) if response_details [ 'json' ] : response_details [ 'json' ] = self . _reconstruct_attendee ( response_details [ 'json' ] ) return response_details
a method to rescind an rsvp to a meetup event
a method to rescind an rsvp to a meetup event
''' a method to rescind an rsvp to a meetup event

        :param group_url: string with meetup urlname for group
        :param event_id: integer with meetup id for event
        :return: dictionary with attendee details inside [json] key

        attendee_details = self._reconstruct_attendee({})
        ''' # https://www.meetup.com/meetup_api/docs/:urlname/events/:event_id/rsvps/
 # validate permissions
 # validate inputs
 # construct request fields
 # send request
 # construct method output

dictionary with attendee details inside [json] key
attendee_details = self._reconstruct_attendee({})
dictionary with attendee details inside [ json ] key attendee_details = self . _reconstruct_attendee ( {} )
self
group_url
string with meetup urlname for group
string with meetup urlname for group
event_id
integer with meetup id for event
integer with meetup id for event