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 multiple users, by their usernames
:: services/users/by_usernames method

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

This method works like the services/users/by_username method, but works with multiple users (instead of only one).

usernames required

Pipe-separated list of usernames. No more than 500 are allowed.

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. Usernames you provide will be mapped to dictionary keys, and each value will be a dictionary of fields you have selected.

Value of null means that the given user haven't been found. (This behavior is different than in the services/users/by_username method, which responds with an HTTP 400 error in such case.)