Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Latest commit

 

History

History
206 lines (175 loc) · 3.61 KB

search.md

File metadata and controls

206 lines (175 loc) · 3.61 KB

UWaterloo Whitepages Directory Search

GET /directory/{user_id}.{format}

Description

This method returns user information for a given WatIAM ID

Summary

Name Value Name Value
Request Protocol GET Requires API Key Yes
Method ID 1201 Enabled Yes
Service Name directory Service ID 251
Information Steward IST Department Data Type LDAP Database
Update Frequency Realtime LDAP lookup Cache Time 0 seconds

Notes

  • All calls on this endpoint are logged as a security measure
  • Reverse searching or indexing this catalogue is not permitted
  • Any value can be null

Sources

Parameters

GET /directory/{user_id}.{format}
Parameter Type Required Description
key filter yes Your API key
callback filter no JSONP callback format

Output Formats

  • json
  • xml

Examples

GET /directory/{user_id}.{format}

Response

Field Name Type Value Description
full_name string Full Name
given_name string Given Name
last_name string Last Name
user_id string User's WatIAM user ID
department string User's Department/Faculty Association
common_names list Other names of the user
offices list Office(s) of the user
telephone_numbers list All telephone numbers of the user with phone extension
homepage string User's personal/department website from their profile

Any value can be null

Output

JSON

{
  "meta":{
    "requests":789770,
    "timestamp":1451857158,
    "status":200,
    "message":"Request successful",
    "method_id":1201,
    "method":{
      
    }
  },
  "data":{
    "full_name":"Kartik Talwar",
    "given_name":"Kartik",
    "last_name":"Talwar",
    "user_id":"ktalwar",
    "department":"SCI\/Science",
    "common_names":[
      "Kartik Talwar"
    ],
    "email_addresses":[
      "ktalwar@uwaterloo.ca",
      "kartik.talwar@uwaterloo.ca"
    ],
    "offices":[
      "EC2 2033"
    ],
    "telephone_numbers":[
      "519-888-4567 x41238"
    ],
    "homepage":"http:\/\/science.uwaterloo.ca\/~ktalwar\/"
  }
}