GET /users/:id/contact_lists/
        Returns a list of :format:`contact_list` that the user owns as the key
        ``contact_lists``.
8572
def get_user_contact_lists(self, id, **data):
        
        
        return self.get("/users/{0}/contact_lists/".format(id), data=data)
60740
def fetch_friend_ids(self, user):
        
        friends = self.fetch_friends(user)

        return [friend['ns1_email']['address']
                for friend in friends
                if 'ns1_email' in friend]
645149
def list(self, service_name, **params):
        
        result = self._invoke_call(service_name, 'list', **params)
        if result is not None:
            return result.get(service_name, list())
        return list()
428706
def discord_to_users(self, memberlist):
		
		_memberlist = self.get_discord_user(x.id for x in memberlist)
		return list(set(x.owner() for x in _memberlist))
537381
def list_users(root=None):
    '''
    
    '''
    if root is not None:
        getspall = functools.partial(_getspall, root=root)
    else:
        getspall = functools.partial(spwd.getspall)

    return sorted([user.sp_namp if hasattr(user, 'sp_namp') else user.sp_nam
                   for user in getspall()])
530317
def get_contact_list(self, list_filter, skip=None, count=None, scope='graph/read'):
        
        params = {
            'filter': list_filter
        }
        if skip:
            params['skip'] = skip
        if count:
            params['count'] = count

        contact_list = _get(
            token=self.oauth.get_user_token(scope),
            uri='/user/socialgraph/contactlist?' + urllib.urlencode(params)
        )

        try:
            return json.loads(contact_list)
        except:
            raise MxitAPIException('Error parsing contact_list data')
1234794
def list(self):
        
        
        uri = URITemplate(self.baseuri + '/{owner}').expand(
            owner=self.username)
        return self.session.get(uri)
679138
def getContactItems(self, person):
        
        return person.store.query(
            PhoneNumber, PhoneNumber.person == person)
375150
def friends(self):
        
        """
        return [r.user for r in self._relationships.values() if r.type is RelationshipType.friend]
926051
def keys(self):
        
        if self._keys is None:
            self._keys = KeyList(self._version, account_sid=self._solution['sid'], )
        return self._keys
1169502
def getContactByUsername(cls, username):
        

        # Check if the User is linked already
        pc = api.portal.get_tool("portal_catalog")
        contacts = pc(portal_type=cls.portal_type,
                      getUsername=username)

        # No Contact assigned to this username
        if len(contacts) == 0:
            return None

        # Multiple Users assigned, this should never happen
        if len(contacts) > 1:
            logger.error("User '{}' is bound to multiple Contacts '{}'".format(
                username, ",".join(map(lambda c: c.Title, contacts))))
            return map(lambda x: x.getObject(), contacts)

        # Return the found Contact object
        return contacts[0].getObject()
336993
def get_contact_groups(options = {})
      request_params = {}

      request_params[:ContactGroupID] = options[:contact_group_id] if options[:contact_group_id]
      request_params[:order]          = options[:order] if options[:order]
      request_params[:where]          = options[:where] if options[:where]

      response_xml = http_get(@client, "#{@xero_url}/ContactGroups", request_params)

      parse_response(response_xml, {:request_params => request_params}, {:request_signature => 'GET/contactgroups'})
    end
253353
def fetch_friend_ids(self, user):
        
        friends = self.fetch_friends(user)
        friend_ids = []
        for friend in friends:
            friend_ids.append(friend.id)
        return friend_ids
678519
def post_user_contact_lists(self, id, **data):
        
        
        return self.post("/users/{0}/contact_lists/".format(id), data=data)
842408
def credentials_lists(self):
        
        if self._credentials_lists is None:
            self._credentials_lists = CredentialListList(self._version, trunk_sid=self._solution['sid'], )
        return self._credentials_lists
208054
def getContact(self, user=None, channel=None):
        
        try:
            return self.contacts[(channel, user)]
        except KeyError:
            new_contact = self.contactClass(self, user=user, channel=channel)
            self.contacts[(channel, user)] = new_contact
            new_contact.setServiceParent(self)
            return new_contact
995052
def getContacts(self, only_active=True):
        
        contacts = self.objectValues("Contact")
        if only_active:
            contacts = filter(api.is_active, contacts)
        return contacts