GET /events/:id/attendees/:attendee_id/
        Returns a single :format:`attendee` by ID, as the key ``attendee``.
322714
def get_event_attendee(self, id, attendee_id, **data):
        
        
        return self.get("/events/{0}/attendees/{0}/".format(id,attendee_id), data=data)
198500
def get_taker_id(self):
        
        if self._my_map['takerId']:
            return Id(self._my_map['takerId'])
        else:
            return Id(self._my_map['takingAgentId'])
801484
def get_group_by_id(self, group_id) -> typing.Optional['Group']:
        
        for group in self.groups:

            if group.group_id == group_id:
                return group

        return None
656107
def getEventFromUid(request, uid):
    
    events = []
    with suppress(ObjectDoesNotExist):
        events.append(SimpleEventPage.objects.get(uid=uid))
    with suppress(ObjectDoesNotExist):
        events.append(MultidayEventPage.objects.get(uid=uid))
    with suppress(ObjectDoesNotExist):
        events.append(RecurringEventPage.objects.get(uid=uid))
    # Exceptions do not have uids and are not returned by this function

    if len(events) == 1:
        if events[0].isAuthorized(request):
            return events[0]
        else:
            return None
    elif len(events) == 0:
        raise ObjectDoesNotExist("No event with uid={}".format(uid))
    else:
        raise MultipleObjectsReturned("Multiple events with uid={}".format(uid))
427140
def per_event_source_id(event_space):
    
    def f(event):
        if is_event(event):
            v = peel(event)
            if v['source']['space'] == event_space:
                return v['source']['id']
            else:
                return None
        else:
            return None
    return _wrap_none(f)
993444
def get_by_id(self, id):
        """"""
        return self.user_cls(id=id, password='secret' + str(id))
890938
def correspondent_id(self):
        
        try:
            return int(self._thread_element.attrib['data-personid'])
        except (ValueError, KeyError):
            try:
                return int(self.correspondent_profile.id)
            except:
                pass
887990
def get_user_venues(self, id, **data):
        
        
        return self.get("/users/{0}/venues/".format(id), data=data)
528156
def _get_event(receiver_id, event_id):
        """"""
        event = Event.query.filter_by(
            receiver_id=receiver_id, id=event_id
        ).first_or_404()

        try:
            user_id = request.oauth.access_token.user_id
        except AttributeError:
            user_id = current_user.get_id()

        if event.user_id != int(user_id):
            abort(401)

        return event
1300430
def get(self, id):
        """"""
        params = {'q': 'id:%s' % str(id), 'wt': 'python'}
        request = urllib.parse.urlencode(params, doseq=True)
        data = None
        try:
            rsp = self.doPost(self.solrBase + '', request, self.formheaders)
            data = eval(rsp.read())
        except Exception:
            pass
        if data['response']['numFound'] > 0:
            return data['response']['docs'][0]
        return None
763862
def host(self):
        '''
        '''
        _id = None
        for participant in self['participants']:
            if participant['type'] == 'host':
                if set(['participant_type', 'id']) < set(participant):
                    # This event uses the id keyname "id".
                    if participant['participant_type'] == 'committee':
                        _id = participant['id']
                        if _id is None:
                            continue
                        return self.committees_dict.get(_id)
                else:
                    return participant['participant']
441561
def participants(self):
        
        if self._participants is None:
            self._participants = ParticipantList(
                self._version,
                account_sid=self._solution['account_sid'],
                conference_sid=self._solution['sid'],
            )
        return self._participants
503965
def get_user_organizers(self, id, **data):
        
        
        return self.get("/users/{0}/organizers/".format(id), data=data)
705505
def get_user(self, id, **data):
        
        
        return self.get("/users/{0}/".format(id), data=data)
498082
def _joined_ids(self):
        
        joined_prov = {}
        if self.joins_subjects:
            joined_prov['subject_ids'] = list(self.study.subject_ids)
        if self.joins_visits:
            joined_prov['visit_ids'] = list(self.study.visit_ids)
        return joined_prov
411871
def get_members()
      @client.make_request(:get, @client.concat_user_path("#{CONFERENCE_PATH}/#{id}/members"))[0].map do |i|
        member = ConferenceMember.new(i, @client)
        member.conference_id = id
        member
      end
    end
1072728
def get_event_transfers(self, id, **data):
        
        
        return self.get("/events/{0}/transfers/".format(id), data=data)