sebra.sws – persons and places exposed as XML via HTTP
hoveduid – get main account
GET http://sebra.uib.no/sws/hoveduid?uid={uid}
uid | string | user account id |
user found
200 OKContent-Type: text/xml
<hoveduid> <uid>...</uid> </hoveduid>
user not found
200 OKContent-Type: text/xml
<hoveduid> <uid>No data</uid> </hoveduid>
Some users have multiple accounts (user ids). This service can be used to determine which one is regarded as the main account.
If the given user id belongs to the main account (or if the user only has a single account) then the service just echos the passed in user id. If the given user id does not belong to the main account then the user id of the main account is returned.
If the given user id doesn't exist then (strangely enough) "No data" is reported as the user id of its main account. No real account can have this user id as user ids never contain spaces.