def contacts_getPublicList(user_id):
    """Gets the contacts (Users) for the user_id"""
    method = 'flickr.contacts.getPublicList'
    data = _doget(method, auth=False, user_id=user_id)
    if isinstance(data.rsp.contacts.contact, list):
        return [User(user.nsid, username=user.username) \
                for user in data.rsp.contacts.contact]
    else:
        user = data.rsp.contacts.contact
        return [User(user.nsid, username=user.username)]
def contacts_getPublicList ( user_id ) : method = 'flickr.contacts.getPublicList' data = _doget ( method , auth = False , user_id = user_id ) if isinstance ( data . rsp . contacts . contact , list ) : return [ User ( user . nsid , username = user . username ) for user in data . rsp . contacts . contact ] else : user = data . rsp . contacts . contact return [ User ( user . nsid , username = user . username ) ]
Gets the contacts (Users) for the user_id