ver. 1958 (4e4db56)
services/apiref
services/apisrv
services/attrs
services/caches
services/caches/formatters
services/caches/map
services/caches/search
services/caches/shortcuts
services/logs
services/logs/images
services/oauth
services/replicate
services/users

Find single user, by his/her username
:: services/users/by_username method

Minimum Authentication: Level 1 (see Authentication Levels)
https://opencache.uk/okapi/services/users/by_username

Retrieve information on a single user, referencing him by his username.

IMPORTANT: user IDs don't change, but usernames may change.

Usually, you'll want to run this method only once, in order to get the IDs of referenced users. You should not store usernames in your database, it is much safer to reference them by their IDs.

username required Name of the user (case insensitive).
fields required

Same as in the services/users/user method. Pipe-separated list of field names which you are interested with. See services/users/user method for a list available values.

format optional Standard common formatting argument.
callback optional Standard common formatting argument.
Plus required consumer_key argument, assigned for your application.

Returned value:

A dictionary of fields you have selected.

If given user does not exist, the method will respond with an HTTP 400 error.