https://developer.zendesk.com/rest_api/docs/core/user_identities#show-identity
166117
def user_identity_show(self, user_id, id, **kwargs):
        ""
        api_path = "/api/v2/users/{user_id}/identities/{id}.json"
        api_path = api_path.format(user_id=user_id, id=id)
        return self.call(api_path, **kwargs)
54069
def deleted_user_show(self, id, **kwargs):
        ""
        api_path = "/api/v2/deleted_users/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
326509
def api_user_uuid(request, userUuid, key=None, hproPk=None):
    """"""

    if not check_api_key(request, key, hproPk):
        return HttpResponseForbidden

    # From UUID to Pk
    from users.models import TechUser

    user = get_object_or_404(TechUser, uuid=userUuid)

    (_, _, hproject) = getPlugItObject(hproPk)

    user.ebuio_member = hproject.isMemberRead(user)
    user.ebuio_admin = hproject.isMemberWrite(user)
    user.subscription_labels = _get_subscription_labels(user, hproject)

    return api_user(request, user.pk, key, hproPk)
672181
function show_user_by_id( $uid )
	{
		$params=array();
		if ( $uid !== NULL ) {
			$this->id_format($uid);
			$params['uid'] = $uid;
		}

		return $this->oauth->get('users/show', $params );
	}
1095501
def identify(self, req, resp, resource, uri_kwargs):
        """"""
        try:
            return req.get_header('X-Api-Key', True)
        except (KeyError, HTTPMissingHeader):
            pass
1288572
def verify(self, user, identity):
        
        return UserIdentityRequest(self).put(self.endpoint.verify, user, identity)
658520
def request_show(self, id, **kwargs):
        ""
        api_path = "/api/v2/requests/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
94312
def end_user_show(self, id, **kwargs):
        ""
        api_path = "/api/v2/end_users/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
1169495
def get_identities(self, item):
        """"""

        item = item['data']
        if 'owner' in item:
            owner = self.get_sh_identity(item['owner'])
            yield owner
        if 'user' in item:
            user = self.get_sh_identity(item['user'])
            yield user
        if 'mentor' in item:
            mentor = self.get_sh_identity(item['mentor'])
            yield mentor
185805
def user_identity_delete(self, user_id, id, **kwargs):
        ""
        api_path = "/api/v2/users/{user_id}/identities/{id}.json"
        api_path = api_path.format(user_id=user_id, id=id)
        return self.call(api_path, method="DELETE", **kwargs)
611039
function _linkIdentity() {
    var identityOptions = {
            id: this.socialUserInfo.id,
            accessToken: this.params.access_token,
            screen_name: this.socialUserInfo.username
        };

    return BB.resolve(grasshopper.request(this.token).users.linkIdentity(this.user._id.toString(), 'pinterest', identityOptions));
}
934673
function cleanIdentity(identity) {
  var userPackage = {};
  Object.keys(identity).forEach(function (key) {
    if (key.indexOf('BRIGHTSOCKET:') !== 0) {
      userPackage[key] = identity[key];
    }
  });
  return userPackage;
}
49984
def sharing_agreement_show(self, id, **kwargs):
        ""
        api_path = "/api/v2/sharing_agreements/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
622131
def identity_to_string(identity_dict):
    """"""
    result = []
    if identity_dict.get('proto'):
        result.append(identity_dict['proto'] + '://')
    if identity_dict.get('user'):
        result.append(identity_dict['user'] + '@')
    result.append(identity_dict['host'])
    if identity_dict.get('port'):
        result.append(':' + identity_dict['port'])
    if identity_dict.get('path'):
        result.append(identity_dict['path'])
    log.debug('identity parts: %s', result)
    return ''.join(result)
51798
def get_identities(self, item):
        '''  '''

        item = item['data']

        # Creators
        if 'event_hosts' in item:
            user = self.get_sh_identity(item['event_hosts'][0])
            yield user

        # rsvps
        rsvps = item.get('rsvps', [])

        for rsvp in rsvps:
            user = self.get_sh_identity(rsvp['member'])
            yield user

        # Comments
        for comment in item['comments']:
            user = self.get_sh_identity(comment['member'])
            yield user
624218
function _linkIdentity(userId, key, socialUserInfo, creds) {
    var identityOptions = {
            id: socialUserInfo.id_str,
            screen_name: socialUserInfo.screen_name,
            accessToken: creds.oauth_token,
            accessSecret: creds.oauth_token_secret
        };

    return db.users.linkIdentity(userId, key, identityOptions);
}
1226653
def iter_user_identities(user):
    """"""
    from indico_vc_vidyo.plugin import VidyoPlugin
    providers = authenticators_re.split(VidyoPlugin.settings.get('authenticators'))
    done = set()
    for provider in providers:
        for _, identifier in user.iter_identifiers(check_providers=True, providers={provider}):
            if identifier in done:
                continue
            done.add(identifier)
            yield identifier