Peoplefinder Services

From Web Developer Network Wiki
Jump to: navigation, search

There are a few services available through Peoplefinder.

The services are offered through a REST - style format, and currently are:

To use these services, you need to know the UID of the person you wish to get information on.

The services are available at the address:

For example: http://peoplefinder.unl.edu/hcards/bbieber2 :

<div class='vcard'>
    <a class='email' href='mailto:bbieber2@unl.edu'><span class="fn">Brett T Bieber</span></a>
    <span class='title'>Interactive Media and Web</span>
    <span class='org'>
        <span class='organization-name'>University of Nebraska-Lincoln</span>
        <span class='organization-unit'>Office of University Comm</span>
    </span>
    <span class='adr'>321 ADM  UNL  68588-0424</span>
    <span class='tel'>(402)472-1598</span>
    <span class='email'><a class='email' href='mailto:bbieber2@{}.edu'>bbieber2@{}.edu</a></span>
    <span class='email'>Delivery Address: bbieber@unlnotes.{}.edu</span>
</div>


Similarly: http://peoplefinder.unl.edu/vcards/bbieber2 :

BEGIN:VCARD
VERSION:3.0
N:Bieber;Brett;;;
FN:Brett Bieber
ORG:University of Nebraska-Lincoln;Office of University Comm
EMAIL;type=INTERNET;type=WORK;type=pref:bbieber2@{}.edu
TEL;type=WORK;type=pref:(402)472-1598
item3.X-ABRELATEDNAMES;type=pref:Interactive Media and Web
item3.X-ABLabel:title
END:VCARD

If a unique record is not found, a 404 status code is sent to the client.

Remember to cache the result if you have that capability! Here's an example which will pull a Peoplefinder result and display it on a UNL Template based page:

<div  id="hcard">
   <a href="http://peoplefinder.unl.edu/?uid=bbieber2">Brett Bieber</a>
</div>
<script type="text/javascript">
	var hcard = "http://peoplefinder.unl.edu/hcards/bbieber2";
	fetchURLInto(hcard, 'hcard', 'Error loading data.');
</script>

Some ideas on how you could use this

- link to your updated contact information on your website in a vcard format.
- pull down the hcard and display it on your web page - use CSS to style it however you would like.
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox