Get Identity Data

Description

This method allows you to retrieve the detailed info of an identity. The identity can be one of your own, or one of your contacts.

HTTP Method

GET

Path

/identities/{identityId}

Authentication

Does not require user authentication.

Parameters

Table 35.  Parameters for " Get Identity Data "

NameTypeValue TypeDescription
identityIdPATHlongThe id of the identity/account to retrieve the data for.
contextCampaignIdQUERYlong(optional) The id of the campaign in which the identity is retrieved. To be used for the case when the logged in user has permissions on that campaign and should be able to view this identity information.

Error Codes

40000 ( Identity )

An unhanded exception occured.

40007 ( Identity )

Don't have the permission to access the identity.

40015 ( Identity )

The provided ID doesn't point to a valid identity.

Response Schema

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema elementFormDefault="qualified" version="1.0" targetNamespace="http://ns.opensocial.org/2008/opensocial" xmlns:tns="http://ns.opensocial.org/2008/opensocial" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="activity" type="tns:Activity"/>

  <xs:element name="appData" type="tns:Appdata"/>

  <xs:element name="group" type="tns:Group"/>

  <xs:element name="list.container" type="xs:anyType"/>

  <xs:element name="person" type="tns:Person"/>

  <xs:element name="response" type="tns:Response"/>

  <xs:complexType name="Person">
    <xs:sequence>
      <xs:element name="aboutMe" type="xs:string" minOccurs="0"/>
      <xs:element name="accounts" type="tns:Account" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="activities" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="addresses" type="tns:Address" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="age" type="xs:string" minOccurs="0"/>
      <xs:element name="anniversary" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="appData" type="tns:Appdata" minOccurs="0"/>
      <xs:element name="birthday" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="bodyType" type="tns:BodyType" minOccurs="0"/>
      <xs:element name="books" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="cars" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="children" type="xs:string" minOccurs="0"/>
      <xs:element name="connected" type="tns:Presence" minOccurs="0"/>
      <xs:element name="currentLocation" type="tns:Address" minOccurs="0"/>
      <xs:element name="displayName" type="xs:string" minOccurs="0"/>
      <xs:element name="drinker" type="tns:Drinker" minOccurs="0"/>
      <xs:element name="emails" type="tns:PluralPersonField" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="ethnicity" type="xs:string" minOccurs="0"/>
      <xs:element name="fashion" type="xs:string" minOccurs="0"/>
      <xs:element name="food" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="gender" type="xs:string" minOccurs="0"/>
      <xs:element name="happiestWhen" type="xs:string" minOccurs="0"/>
      <xs:element name="hasApp" type="xs:boolean" minOccurs="0"/>
      <xs:element name="heroes" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="humor" type="xs:string" minOccurs="0"/>
      <xs:element name="id" type="xs:string" minOccurs="0"/>
      <xs:element name="ims" type="tns:PluralPersonField" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="interests" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="jobInterests" type="xs:string" minOccurs="0"/>
      <xs:element name="languagesSpoken" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="livingArrangement" type="xs:string" minOccurs="0"/>
      <xs:element name="lookingFor" type="tns:LookingFor" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="movies" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="music" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="name" type="tns:Name" minOccurs="0"/>
      <xs:element name="networkPresence" type="tns:NetworkPresence" minOccurs="0"/>
      <xs:element name="nickname" type="xs:string" minOccurs="0"/>
      <xs:element name="organizations" type="tns:Organization" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="pets" type="xs:string" minOccurs="0"/>
      <xs:element name="phoneNumbers" type="tns:PluralPersonField" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="photos" type="tns:PluralPersonField" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="politicalViews" type="xs:string" minOccurs="0"/>
      <xs:element name="preferredUsername" type="xs:string" minOccurs="0"/>
      <xs:element name="profileSong" type="tns:Url" minOccurs="0"/>
      <xs:element name="profileUrl" type="xs:string" minOccurs="0"/>
      <xs:element name="profileVideo" type="tns:Url" minOccurs="0"/>
      <xs:element name="published" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="quotes" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="relationships" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="relationshipStatus" type="xs:string" minOccurs="0"/>
      <xs:element name="religion" type="xs:string" minOccurs="0"/>
      <xs:element name="romance" type="xs:string" minOccurs="0"/>
      <xs:element name="scaredOf" type="xs:string" minOccurs="0"/>
      <xs:element name="sexualOrientation" type="xs:string" minOccurs="0"/>
      <xs:element name="smoker" type="tns:Smoker" minOccurs="0"/>
      <xs:element name="sports" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="status" type="xs:string" minOccurs="0"/>
      <xs:element name="tags" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="thumbnailUrl" type="xs:string" minOccurs="0"/>
      <xs:element name="turnOffs" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="turnOns" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="tvShows" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="updated" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="urls" type="tns:Url" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="utcOffset" type="xs:int" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Account">
    <xs:all>
      <xs:element name="domain" type="xs:string" minOccurs="0"/>
      <xs:element name="primary" type="xs:boolean" minOccurs="0"/>
      <xs:element name="userid" type="xs:string" minOccurs="0"/>
      <xs:element name="username" type="xs:string" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="Address">
    <xs:all>
      <xs:element name="country" type="xs:string" minOccurs="0"/>
      <xs:element name="extendedAddress" type="xs:string" minOccurs="0"/>
      <xs:element name="latitude" type="xs:double" minOccurs="0"/>
      <xs:element name="locality" type="xs:string" minOccurs="0"/>
      <xs:element name="longitude" type="xs:double" minOccurs="0"/>
      <xs:element name="poBox" type="xs:string" minOccurs="0"/>
      <xs:element name="postalCode" type="xs:string" minOccurs="0"/>
      <xs:element name="primary" type="xs:boolean" minOccurs="0"/>
      <xs:element name="region" type="xs:string" minOccurs="0"/>
      <xs:element name="streetAddress" type="xs:string" minOccurs="0"/>
      <xs:element name="type" type="xs:string" minOccurs="0"/>
      <xs:element name="formatted" type="xs:string" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="Appdata">
    <xs:sequence>
      <xs:element name="entry" type="tns:AppdataEntry" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="AppdataEntry" mixed="true">
    <xs:sequence>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="value" type="xs:anyType"/>
        <xs:element name="key" type="xs:string"/>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Group">
    <xs:all>
      <xs:element name="id" type="xs:string" minOccurs="0"/>
      <xs:element name="title" type="xs:string" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="Name">
    <xs:all>
      <xs:element name="additionalName" type="xs:string" minOccurs="0"/>
      <xs:element name="familyName" type="xs:string" minOccurs="0"/>
      <xs:element name="givenName" type="xs:string" minOccurs="0"/>
      <xs:element name="honorificPrefix" type="xs:string" minOccurs="0"/>
      <xs:element name="honorificSuffix" type="xs:string" minOccurs="0"/>
      <xs:element name="formatted" type="xs:string" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="Response">
    <xs:sequence>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="group" type="tns:Group"/>
        <xs:element name="entry" type="tns:Entry"/>
        <xs:element name="person" type="tns:Person"/>
        <xs:element name="isUpdatedSince" type="xs:boolean"/>
        <xs:element name="isSorted" type="xs:boolean"/>
        <xs:element name="map" type="xs:anyType"/>
        <xs:element name="isFiltered" type="xs:boolean"/>
        <xs:element name="itemsPerPage" type="xs:int"/>
        <xs:element name="message" type="tns:Message"/>
        <xs:element name="totalResults" type="xs:long"/>
        <xs:element name="album" type="tns:Album"/>
        <xs:element name="startIndex" type="xs:long"/>
        <xs:element name="mediaItem" type="tns:MediaItem"/>
        <xs:element name="activity" type="tns:Activity"/>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Drinker">
    <xs:all>
      <xs:element name="displayValue" type="xs:string" minOccurs="0"/>
      <xs:element name="value" type="tns:DrinkerType" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="ActivityTemplateParams">
    <xs:all>
      <xs:element name="PersonKey" type="xs:string" minOccurs="0"/>
      <xs:element name="PersonKey.DisplayName" type="xs:string" minOccurs="0"/>
      <xs:element name="PersonKey.Id" type="xs:string" minOccurs="0"/>
      <xs:element name="PersonKey.ProfileUrl" type="xs:string" minOccurs="0"/>
      <xs:element ref="tns:person" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="Activity">
    <xs:sequence>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="streamFaviconUrl" type="xs:string"/>
        <xs:element name="externalId" type="xs:string"/>
        <xs:element name="url" type="xs:string"/>
        <xs:element name="body" type="xs:string"/>
        <xs:element name="id" type="xs:string"/>
        <xs:element name="titleId" type="xs:string"/>
        <xs:element name="streamUrl" type="xs:string"/>
        <xs:element name="streamSourceUrl" type="xs:string"/>
        <xs:element name="templateParams" type="tns:ActivityTemplateParams"/>
        <xs:element name="appId" type="xs:string"/>
        <xs:element name="title" type="xs:string"/>
        <xs:element name="postedTime" type="xs:long"/>
        <xs:element name="streamTitle" type="xs:string"/>
        <xs:element name="userId" type="xs:string"/>
        <xs:element name="bodyId" type="xs:string"/>
        <xs:element name="priority" type="xs:double"/>
        <xs:element name="mediaItems" type="tns:MediaItem"/>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="MediaItem">
    <xs:all>
      <xs:element name="id" type="xs:string" minOccurs="0"/>
      <xs:element name="title" type="xs:string" minOccurs="0"/>
      <xs:element name="created" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="thumbnailUrl" type="xs:string" minOccurs="0"/>
      <xs:element name="description" type="xs:string" minOccurs="0"/>
      <xs:element name="duration" type="xs:integer" minOccurs="0"/>
      <xs:element name="location" type="tns:Address" minOccurs="0"/>
      <xs:element name="language" type="xs:string" minOccurs="0"/>
      <xs:element name="albumId" type="xs:string" minOccurs="0"/>
      <xs:element name="fileSize" type="xs:long" minOccurs="0"/>
      <xs:element name="startTime" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="rating" type="xs:integer" minOccurs="0"/>
      <xs:element name="numVotes" type="xs:integer" minOccurs="0"/>
      <xs:element name="numComments" type="xs:integer" minOccurs="0"/>
      <xs:element name="numViews" type="xs:integer" minOccurs="0"/>
      <xs:element name="tags" type="xs:string" minOccurs="0"/>
      <xs:element name="taggedPeople" type="xs:string" minOccurs="0"/>
      <xs:element name="mimeType" type="xs:string" minOccurs="0"/>
      <xs:element name="type" type="tns:MediaItemType" minOccurs="0"/>
      <xs:element name="url" type="xs:string" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="Album">
    <xs:all>
      <xs:element name="id" type="xs:string" minOccurs="0"/>
      <xs:element name="thumbnailUrl" type="xs:string" minOccurs="0"/>
      <xs:element name="title" type="xs:string" minOccurs="0"/>
      <xs:element name="description" type="xs:string" minOccurs="0"/>
      <xs:element name="location" type="tns:Address" minOccurs="0"/>
      <xs:element name="ownerId" type="xs:string" minOccurs="0"/>
      <xs:element name="mediaType" type="tns:MediaItemType" minOccurs="0"/>
      <xs:element name="mediaMimeType" type="xs:string" minOccurs="0"/>
      <xs:element name="mediaItemCount" type="xs:integer" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="EscapeType">
    <xs:all>
      <xs:element name="displayValue" type="xs:string" minOccurs="0"/>
      <xs:element name="value" type="tns:EscapeTypeType" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="Organization">
    <xs:all>
      <xs:element name="address" type="tns:Address" minOccurs="0"/>
      <xs:element name="department" type="xs:string" minOccurs="0"/>
      <xs:element name="description" type="xs:string" minOccurs="0"/>
      <xs:element name="endDate" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="name" type="xs:string" minOccurs="0"/>
      <xs:element name="startDate" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="type" type="xs:string" minOccurs="0"/>
      <xs:element name="title" type="xs:string" minOccurs="0"/>
      <xs:element name="field" type="xs:string" minOccurs="0"/>
      <xs:element name="subField" type="xs:string" minOccurs="0"/>
      <xs:element name="webpage" type="xs:string" minOccurs="0"/>
      <xs:element name="salary" type="xs:string" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="Environment">
    <xs:all>
      <xs:element name="displayValue" type="xs:string" minOccurs="0"/>
      <xs:element name="value" type="tns:EnvironmentType" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="Presence">
    <xs:all>
      <xs:element name="displayValue" type="xs:string" minOccurs="0"/>
      <xs:element name="value" type="tns:PresenceType" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="Message">
    <xs:sequence>
      <xs:element name="body" type="xs:string" minOccurs="0"/>
      <xs:element name="bodyId" type="xs:string" minOccurs="0"/>
      <xs:element name="title" type="xs:string" minOccurs="0"/>
      <xs:element name="titleId" type="xs:string" minOccurs="0"/>
      <xs:element name="id" type="xs:string" minOccurs="0"/>
      <xs:element name="recipients" type="xs:string" minOccurs="0"/>
      <xs:element name="senderId" type="xs:string" minOccurs="0"/>
      <xs:element name="timeSent" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="inReplyTo" type="xs:string" minOccurs="0"/>
      <xs:element name="replies" type="xs:string" minOccurs="0"/>
      <xs:element name="status" type="xs:string" minOccurs="0"/>
      <xs:element name="appUrl" type="tns:Url" minOccurs="0"/>
      <xs:element name="collectionIds" type="xs:string" minOccurs="0"/>
      <xs:element name="updated" type="xs:dateTime" minOccurs="0"/>
      <xs:element name="urls" type="tns:Url" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Url">
    <xs:all>
      <xs:element name="value" type="xs:string" minOccurs="0"/>
      <xs:element name="linkText" type="xs:string" minOccurs="0"/>
      <xs:element name="type" type="xs:string" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="Entry">
    <xs:sequence>
      <xs:element name="activity" type="tns:Activity" minOccurs="0"/>
      <xs:element ref="tns:person" minOccurs="0"/>
      <xs:element name="group" type="tns:Group" minOccurs="0"/>
      <xs:element name="appData" type="tns:Appdata" minOccurs="0"/>
      <xs:element name="album" type="tns:Album" minOccurs="0"/>
      <xs:element name="mediaItem" type="tns:MediaItem" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="MessageType">
    <xs:all>
      <xs:element name="displayValue" type="xs:string" minOccurs="0"/>
      <xs:element name="value" type="tns:MessageTypeType" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="CreateActivityPriority">
    <xs:all>
      <xs:element name="displayValue" type="xs:string" minOccurs="0"/>
      <xs:element name="value" type="tns:CreateActivityPriorityType" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="NetworkPresence">
    <xs:all>
      <xs:element name="displayValue" type="xs:string" minOccurs="0"/>
      <xs:element name="value" type="tns:NetworkPresenceType" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="LookingFor">
    <xs:all>
      <xs:element name="displayValue" type="xs:string" minOccurs="0"/>
      <xs:element name="value" type="tns:LookingForType" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="PluralPersonField">
    <xs:all>
      <xs:element name="value" type="xs:string" minOccurs="0"/>
      <xs:element name="type" type="xs:string" minOccurs="0"/>
      <xs:element name="primary" type="xs:boolean" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="Smoker">
    <xs:all>
      <xs:element name="displayValue" type="xs:string" minOccurs="0"/>
      <xs:element name="value" type="tns:SmokerType" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="BodyType">
    <xs:all>
      <xs:element name="build" type="xs:string" minOccurs="0"/>
      <xs:element name="eyeColor" type="xs:string" minOccurs="0"/>
      <xs:element name="hairColor" type="xs:string" minOccurs="0"/>
      <xs:element name="height" type="xs:double" minOccurs="0"/>
      <xs:element name="weight" type="xs:double" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:simpleType name="DrinkerType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="HEAVILY"/>
      <xs:enumeration value="NO"/>
      <xs:enumeration value="OCCASIONALLY"/>
      <xs:enumeration value="QUIT"/>
      <xs:enumeration value="QUITTING"/>
      <xs:enumeration value="REGULARLY"/>
      <xs:enumeration value="SOCIALLY"/>
      <xs:enumeration value="YES"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="MediaItemType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="AUDIO"/>
      <xs:enumeration value="IMAGE"/>
      <xs:enumeration value="VIDEO"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="EscapeTypeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="HTML_ESCAPE"/>
      <xs:enumeration value="NONE"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="EnvironmentType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="ACTIVITY"/>
      <xs:enumeration value="ADDRESS"/>
      <xs:enumeration value="BODY_TYPE"/>
      <xs:enumeration value="EMAIL"/>
      <xs:enumeration value="FILTER_TYPE"/>
      <xs:enumeration value="MEDIAITEM"/>
      <xs:enumeration value="MESSAGE"/>
      <xs:enumeration value="MESSAGE_TYPE"/>
      <xs:enumeration value="NAME"/>
      <xs:enumeration value="ORGANIZATION"/>
      <xs:enumeration value="PERSON"/>
      <xs:enumeration value="PHONE"/>
      <xs:enumeration value="SORTORDER"/>
      <xs:enumeration value="URL"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="PresenceType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="AWAY"/>
      <xs:enumeration value="CHAT"/>
      <xs:enumeration value="DND"/>
      <xs:enumeration value="OFFLINE"/>
      <xs:enumeration value="ONLINE"/>
      <xs:enumeration value="XA"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="MessageTypeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="EMAIL"/>
      <xs:enumeration value="NOTIFICATION"/>
      <xs:enumeration value="PRIVATE_MESSAGE"/>
      <xs:enumeration value="PUBLIC_MESSAGE"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="CreateActivityPriorityType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="HIGH"/>
      <xs:enumeration value="LOW"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="NetworkPresenceType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="AWAY"/>
      <xs:enumeration value="CHAT"/>
      <xs:enumeration value="DND"/>
      <xs:enumeration value="OFFLINE"/>
      <xs:enumeration value="ONLINE"/>
      <xs:enumeration value="XA"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="LookingForType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="ACTIVITY_PARTNERS"/>
      <xs:enumeration value="DATING"/>
      <xs:enumeration value="FRIENDS"/>
      <xs:enumeration value="NETWORKING"/>
      <xs:enumeration value="RANDOM"/>
      <xs:enumeration value="RELATIONSHIP"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="SmokerType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="HEAVILY"/>
      <xs:enumeration value="NO"/>
      <xs:enumeration value="OCCASIONALLY"/>
      <xs:enumeration value="QUIT"/>
      <xs:enumeration value="QUITTING"/>
      <xs:enumeration value="REGULARLY"/>
      <xs:enumeration value="SOCIALLY"/>
      <xs:enumeration value="YES"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>

Sample Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<person xmlns="http://ns.opensocial.org/2008/opensocial" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<accounts>
		<domain>http://www.doyoupoken.com</domain>
		<primary>true</primary>
		<userid>2278120</userid>
	</accounts>
	<accounts>
		<domain>http://www.linkedin.com/profile?viewProfile=&amp;key=1742727134&amp;trk=mh_connup&amp;goback=.hom</domain>
		<primary>false</primary>
		<username>john.poken@gmail.com</username>
	</accounts>
	<accounts>
		<domain>http://www.glocals.com/members/profile.asp?userid=190811121</domain>
		<primary>false</primary>
		<username>john.poken@gmail.com</username>
	</accounts>
	<accounts>
		<domain>http://www.facebook.com/profile.php?id=6393321090581&amp;ref=nf</domain>
		<primary>false</primary>
		<username>john.poken@gmail.com</username>
	</accounts>
	<accounts>
		<domain>skype:john.poken?add</domain>
		<primary>false</primary>
		<username>john.poken</username>
	</accounts>
	<accounts>
		<domain>gtalk:john.poken%40gmail.com</domain>
		<primary>false</primary>
		<username>john.poken@gmail.com</username>
	</accounts>
	<accounts>
		<domain>http://twitter.com/john.poken</domain>
		<primary>false</primary>
		<username>john.poken</username>
	</accounts>
	<birthday>1982-10-10T00:00:00Z</birthday>
	<currentLocation>
		<country/>
		<locality>Geneva</locality>
		<postalCode/>
		<streetAddress/>
	</currentLocation>
	<emails>
		<value/>
		<type>email_home</type>
	</emails>
	<emails>
		<value/>
		<type>email_work</type>
	</emails>
	<emails>
		<value>john.poken@gmail.com</value>
		<type>email_other</type>
	</emails>
	<id>22787110</id>
	<name>
		<additionalName/>
		<familyName>Poken</familyName>
		<givenName>John</givenName>
		<honorificPrefix/>
	</name>
	<nickname>john.poken</nickname>
	<organizations>
		<name>Poken</name>
		<type>organization_job</type>
		<title>Software Developer</title>
	</organizations>
	<organizations>
		<name/>
		<type>organization_job</type>
		<title/>
	</organizations>
	<phoneNumbers>
		<value/>
		<type>phone_mobile</type>
	</phoneNumbers>
	<phoneNumbers>
		<value/>
		<type>phone_fax_home</type>
	</phoneNumbers>
	<phoneNumbers>
		<value/>
		<type>phone_fax_work</type>
	</phoneNumbers>
	<phoneNumbers>
		<value/>
		<type>phone_home</type>
	</phoneNumbers>
	<phoneNumbers>
		<value/>
		<type>phone_work</type>
	</phoneNumbers>
	<phoneNumbers>
		<value/>
		<type>phone_other</type>
	</phoneNumbers>
	<photos>
		<value>http://cache-profile.poken.com/image/2127820/29x29/e3170d9dfcf42.jpg</value>
		<type>29x29</type>
	</photos>
	<photos>
		<value>http://cache-profile.poken.com/image/2278210/160x160/e370d9dfcf42.jpg</value>
		<type>160x160</type>
	</photos>
	<photos>
		<value>http://cache-profile.poken.com/image/2278210/100x100/e370d9dfcf42.jpg</value>
		<type>100x100</type>
		<primary>true</primary>
	</photos>
	<thumbnailUrl>http://cache-profile.poken.com/image/2278210/100x100/e370d9dfcf42.jpg</thumbnailUrl>
	<urls>
		<value/>
		<type>url_homepage</type>
	</urls>
	<urls>
		<value/>
		<type>url_blog</type>
	</urls>
	<urls>
		<value/>
		<type>url_rss</type>
	</urls>
	<urls>
		<value/>
		<type>url_work</type>
	</urls>
	<urls>
		<value/>
		<type>url_other</type>
	</urls>
</person>